CVE-2026-53582

OPNsense: XPATH Injection can disclose any secret in config.xml

Published Oct 15, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.10, the Trust module stores attacker-controlled certificate authority and certificate refid values and interpolates them into XPath expressions in src/opnsense/mvc/app/models/OPNsense/Trust/FieldTypes/CAsField.php and src/opnsense/mvc/app/models/OPNsense/Trust/FieldTypes/CertificatesField.php. A user with CA Manager or Certificate Manager privileges can submit a crafted refid and repeatedly retrieve the object to obtain a boolean refcount oracle, allowing values in config.xml to be recovered character by character. Exposed values can include password hashes, API credentials, certificate private keys, VPN key material, and high-availability credentials, enabling privilege escalation and compromise of other security domains. This issue is fixed in version 26.1.10.

Analysis

AI-generated

Technical impact

The vulnerability is an XPath injection in the Trust module of OPNsense, allowing a user with CA Manager or Certificate Manager privileges to supply a crafted refid that is incorporated into untrusted XPath expressions. By repeatedly querying the object, the attacker can enumerate secret values from config.xml character by character, exposing password hashes, API credentials, certificate private keys, VPN key material and high‑availability secrets.

Affected Systems

Affected systems are OPNsense firewall platforms using the opnsense:core package prior to version 26.1.10. The flaw resides in the CAsField and CertificatesField classes within the Trust module, which process certificate authority and certificate reference identifiers without proper sanitization.

Risk and Exploitability

The CVSS score of 7.1 reflects a medium to high impact for confidentiality and integrity, while an EPSS score of less than 1% indicates low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an authenticated user with elevated CA Manager or Certificate Manager rights, making it an internal threat with limited attack surface. If an attacker gains access to these privileged roles, the data disclosure can lead to full privilege escalation and compromise of additional security domains.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch by upgrading OPNsense to version 26.1.10 or newer.
  • After patching, revoke any credentials or keys that might have been read from config.xml and generate fresh credentials.
  • Restrict CA Manager and Certificate Manager privileges to trusted administrators and review configuration to ensure that untrusted input is not interpolated into XPath expressions.

Generated by OpenCVE AI on October 16, 2026 at 20:32 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': 'none', '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.10, the Trust module stores attacker-controlled certificate authority and certificate refid values and interpolates them into XPath expressions in src/opnsense/mvc/app/models/OPNsense/Trust/FieldTypes/CAsField.php and src/opnsense/mvc/app/models/OPNsense/Trust/FieldTypes/CertificatesField.php. A user with CA Manager or Certificate Manager privileges can submit a crafted refid and repeatedly retrieve the object to obtain a boolean refcount oracle, allowing values in config.xml to be recovered character by character. Exposed values can include password hashes, API credentials, certificate private keys, VPN key material, and high-availability credentials, enabling privilege escalation and compromise of other security domains. This issue is fixed in version 26.1.10.
Title OPNsense: XPATH Injection can disclose any secret in config.xml
Weaknesses CWE-643
CWE-91
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-643

    Improper Neutralization of Data within XPath Expressions ('XPath Injection')

  • CWE-91

    XML Injection (aka Blind XPath Injection)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 16, 2026, 5:13 PM
Reserved
Jun 9, 2026, 7:11 PM
Status
Deferred
Published
Oct 15, 2026, 4:18 PM
Modified
Oct 16, 2026, 6:17 PM