CVE-2026-58393

OPNsense: OpenVPN Client Specific Override common_name allows path traversal in generated CSO files

Published Oct 15, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows a privileged user who can create client specific overrides to inject path traversal sequences in the common_name field. During a client-connect or authentication event, the server concatenates the supplied name when writing a configuration file, which can result in a file being placed outside the intended /var/etc/openvpn-csc/<vpnid> directory. The contents written are OpenVPN configuration data, not arbitrary bytes, but the ability to write files to arbitrary locations could be leveraged to modify existing configuration files or introduce misleading defaults, potentially impacting confidentiality or availability of the VPN service.

Affected Systems

OPNsense core versions prior to 26.1.11 are affected. The issue is fixed in 26.1.11 and later releases.

Risk and Exploitability

The CVSS score is 5.9, indicating moderate severity. The EPSS score is reported as less than 1 %, implying a low likelihood of exploitation. The vulnerability requires an authenticated user with Client Specific Override privileges to set a specially crafted common_name value, and the client must later connect using that name or username for the filesystem write to occur. Because of these prerequisites, the practical attack potential is limited but the patch is advisable to eliminate the risk completely.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OPNsense to version 26.1.11 or later, which removes the vulnerability.
  • Restrict the ability to create Client Specific Overrides to trusted administrators only, ensuring that untrusted users cannot submit path traversal strings.
  • Monitor the /var/etc/openvpn-csc directory for unexpected file creation or modifications to detect any misuse of the legacy behaviour.

Generated by OpenCVE AI on October 16, 2026 at 20:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Opnsense
Opnsense core
Vendors & Products Opnsense
Opnsense core
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title OPNsense: OpenVPN Client Specific Override common_name allows path traversal in generated CSO files
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 15, 2026, 4:07 PM
Reserved
Jun 30, 2026, 6:19 PM
Status
Deferred
Published
Oct 15, 2026, 4:18 PM
Modified
Oct 15, 2026, 9:08 PM