CVE-2026-58393: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in opnsense core
Description
OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the OpenVPN Client Specific Override common_name field accepts path traversal sequences and openvpn_csc_conf_write() concatenates the value into /var/etc/openvpn-csc/<vpnid>/<common_name> without normalization or a basename check. The affected event handlers are client_connect.php and user_pass_verify.php. An authenticated user with Client Specific Override privileges can store the traversal value, and a matching OpenVPN client-connect or authentication event causes a generated CSO file to be written outside the intended directory. The file content is generated OpenVPN configuration rather than arbitrary bytes, and practical exploitation requires the attacker to cause a matching common name or username to be processed. This issue is fixed in version 26.1.11.
CVSS v3.1
Score 5.9medium
Affected software
opnsense
core
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OPNsense core before version 26.1.11 contains a path traversal vulnerability in the OpenVPN Client Specific Override feature. The common_name field accepts path traversal sequences that are concatenated into file paths without normalization or basename checks, specifically in the openvpn_csc_conf_write() function. Authenticated users with Client Specific Override privileges can store traversal sequences that cause generated OpenVPN configuration files to be written outside the intended /var/etc/openvpn-csc/<vpnid>/ directory. The vulnerability affects event handlers client_connect.php and user_pass_verify.php. Exploitation requires an attacker to cause a matching common name or username to be processed during OpenVPN client-connect or authentication events. The vulnerability is addressed in OPNsense version 26.1.11.
Potential Impact
An authenticated user with Client Specific Override privileges can cause OpenVPN configuration files to be written outside the intended directory, potentially overwriting files or placing configuration files in unauthorized locations. The file content is generated OpenVPN configuration, not arbitrary data. The vulnerability does not impact confidentiality but can impact integrity and availability of the system. Exploitation requires specific conditions including triggering matching OpenVPN events. The CVSS 3.1 base score is 5.9 (medium severity), reflecting network attack vector, high attack complexity, low privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and low availability impact.
Mitigation Recommendations
This vulnerability is fixed in OPNsense core version 26.1.11. Users should upgrade to version 26.1.11 or later to remediate this issue. No additional mitigations are indicated by the vendor advisory. Until upgrade, restrict Client Specific Override privileges to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-30T18:19:58.377Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad0f2722cdf04f65640952b
Added to database: 10/15/2026, 15:34:10 UTC
Last enriched: 10/15/2026, 15:48:31 UTC
Last updated: 10/15/2026, 16:34:05 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.