CyberSecBulletin
CVE-2023-7245NVD status: Analyzed

OpenVPN Connect: Improper Neutralization of Directives in Dynamically Evaluated Code

CVE-2023-7245 is a high-severity improper neutralization of directives in dynamically evaluated code vulnerability in OpenVPN Connect from OpenVPN, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. Affected OpenVPN Connect versions: 3.0 (Windows) through 3.4.3; 3.0 (macOS) through 3.4.7. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.32% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update connect to 3.4.7 or 3.4.3, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
OpenVPNOpenVPN Connect3.0 (Windows) through 3.4.3; 3.0 (macOS) through 3.4.7Not stated
Openvpnconnect3.0 up to, but not including, 3.4.7; 3.0 up to, but not including, 3.4.33.4.7, 3.4.3

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by CISA (ADP).

Official description

The nodejs framework in OpenVPN Connect 3.0 through 3.4.3 (Windows)/3.4.7 (macOS) was not properly configured, which allows a local user to execute arbitrary code within the nodejs process context via the ELECTRON_RUN_AS_NODE environment variable

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Neutralization of Directives in Dynamically Evaluated Code

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. eval).

How developers prevent this class of flaw

  • If possible, refactor your code so that it does not need to use eval() at all.
  • For Python programs, it is frequently encouraged to use the ast.literal_eval() function instead of eval, since it is intentionally designed to avoid executing code. However, an adversary could still cause excessive memory or stack consumption via deeply nested structures, so the python documentation discourages use of ast.literal_eval() on untrusted data.

More Improper Neutralization of Directives in Dynamically Evaluated Code vulnerabilities (CWE-95)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in OpenVPN Connect

All OpenVPN Connect vulnerabilities

Recent Improper Neutralization of Directives in Dynamically Evaluated Code vulnerabilities

Spotted an error? Tell us.