# CVE-2026-58395: OPNsense: XPath injection in MVC safe-delete

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T15:16:49.985Z
- Modified: 2026-10-15T21:08:49.703Z
- Weaknesses: CWE-643
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the safe-delete path reached through ApiMutableModelControllerBase::delBase() interpolates an unvalidated safe-delete token from the request URL into an XPath expression over config.xml before confirming that the token is a valid identifier. A user holding any one affected module privilege can send a crafted token to one of 21 affected delete endpoints covering Traffic Shaper, DHCP relay, Dnsmasq, Firewall Category, or Kea DHCP, causing the XPath to match configuration data across modules. The resulting error response exposes configuration item names, descriptions, reference paths, and UUIDs and provides an XPath substring-presence oracle, including for modules the user cannot otherwise access. The request does not modify configuration or perform a deletion. This issue is fixed in version 26.1.11.

(As written by CVE List.)

## Affected

- opnsense core: < 26.1.11

## References

- <https://github.com/opnsense/core/security/advisories/GHSA-98h6-479q-9q3w> (exploit)
- <https://github.com/opnsense/core/commit/631e14721b311badc1d3c0d29321e4d42585156b>
- <https://github.com/opnsense/core/commit/d7054cef69f72588feac1091254960835be19dfe>
- <https://hackerask.com/posts/opnsense>

## Sources

- CVE List: [CVE-2026-58395](https://www.cve.org/CVERecord?id=CVE-2026-58395), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-58395](https://nvd.nist.gov/vuln/detail/CVE-2026-58395), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-58395 · Whole record: https://cve.day/CVE-2026-58395.json · Rebuilt by cve.day 2026-11-25T22:59:44.901Z
