Technical impact
The vulnerability is an OS command injection in the openvpn.connect_async.sh script used by pfSense Community Edition up to version 2.9.0 and pfSense Plus up to 26.07. Authenticated VPN users who authenticate via RADIUS or LDAP can supply usernames that contain single quotes and shell metacharacters. When the script evaluates such a username as part of a pfctl anchor name during connect or disconnect, the malicious input breaks out of the intended context and is executed as a command with root privileges. This allows attackers to gain full system control, thereby compromising confidentiality, integrity, and availability. The weakness is identified as CWE-78.
Affected Systems
Netgate pfSense Community Edition installations that use OpenVPN authentication via RADIUS or LDAP and are running any version up to 2.9.0, as well as Netgate pfSense Plus installations using OpenVPN authentication via RADIUS or LDAP and running any version up to 26.07, are vulnerable.
Risk and Exploitability
The CVSS score of 7.7 classifies this as a high severity vulnerability. EPSS score is 16%, and it is not listed in the CISA KEV catalog. Exploitation requires only that an attacker is an authenticated VPN user with the ability to submit credentials containing shell characters. By providing such a username, the attacker can trigger the vulnerable script and execute arbitrary commands as root. The likely attack vector is an authenticated user supplying a crafted username during VPN authentication.