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.
Published: 2026-10-15
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Path traversal allowing unauthorized configuration file writes
Action: Apply Patch
AI Analysis

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.

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

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 yet.

History

Sat, 17 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Opnsense
Opnsense core
Vendors & Products Opnsense
Opnsense core

Thu, 15 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 15 Oct 2026 15:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-15T16:07:55.688Z

Reserved: 2026-06-30T18:19:58.377Z

Link: CVE-2026-58393

cve-icon Vulnrichment

Updated: 2026-10-15T16:07:30.895Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T16:18:18.310

Modified: 2026-10-15T21:08:49.703

Link: CVE-2026-58393

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T19:00:13Z

Weaknesses
  • CWE-22

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