Netgate pfSense CE through 2.9.0 and Plus through 26.07 OS Command Injection via openvpn.connect_async.sh
Netgate pfSense CE · Netgate pfSense Plus
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Netgate pfSense CE |
| No fix yet |
| Netgate pfSense Plus |
| No fix yet |
Original description
pfSense CE through 2.9.0 and Plus through 26.07 contains an OS command injection vulnerability in the OpenVPN openvpn.connect_async.sh script that allows authenticated VPN users to execute commands as root via crafted usernames. Attackers authenticated through RADIUS or LDAP can use usernames containing single quotes and shell metacharacters to break out of the eval'd pfctl anchor name on connect or disconnect.
From the CVE record · VulnCheck
References
- github.com/abraxas/pfsense-ovpn-connect-evalExploit
- abraxaslabs.tech/research/pfsense-ce-leftovers
- github.com/pfsense/pfsense/blob/9363ac5b8651a1c7a333180425ce7719070f95f9/src/usr/local/sbin/openvpn.connect_async.sh#L83-L114
- vulncheck.com/advisories/netgate-pfsense-ce-through-2.9.0-os-command-injection-via-openvpn-connect-async-sh
- docs.netgate.com/downloads/pfSense-SA-26_35.openvpn.asc
- redmine.pfsense.org/issues/17229Patch
- docs.netgate.com/pfsense/en/latest/releases/26-07-1_2-9-1.html