CVE-2026-58393: OPNsense: OpenVPN Client Specific Override common_name allows path traversal in generated CSO files

Published Oct 15, 2026
·
Updated

OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the OpenVPN Client Specific Override commonname field accepts path traversal sequences and openvpncscconfwrite() concatenates the value into /var/etc/openvpn-csc/<vpnid>/<commonname> without normalization or a basename check. The affected event handlers are clientconnect.php and userpassverify.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.

Affected Software

1 affected component
OPNsense OPNsense<26.1.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OPNsense to a version that resolves this vulnerability.

    Fixed in 26.1.11

Event History

Oct 15, 2026
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

OPNsense versions prior to 26.1.11 are affected where an authenticated user has Client Specific Override privileges. Exploitation also depends on a matching OpenVPN client-connect or authentication event being processed.

2

What access and conditions does an attacker need?

The attacker needs authenticated access with permission to create or modify a Client Specific Override and must supply a traversal sequence in its common_name field. They must then cause a matching common name or username to be handled by the affected OpenVPN event handlers.

3

What is written outside the intended directory?

The issue can cause a generated OpenVPN Client Specific Override configuration file to be written outside /var/etc/openvpn-csc/<vpnid>/. The attacker cannot write arbitrary bytes; the written content is generated OpenVPN configuration.

4

How can the issue be remediated?

Upgrade OPNsense to version 26.1.11. If an immediate upgrade is not possible, restrict Client Specific Override privileges to trusted administrators and review existing override common_name values for path traversal sequences.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203