CVE-2026-58395 OPNsense: XPath injection in MVC safe-delete
Attackers with module privileges can exploit XPath injection in safe-delete endpoints to read configuration data from unauthorized modules.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-58395?
CVE-2026-58395 is a medium-severity vulnerability in opnsense core, published on 15 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-643
Which versions are affected by CVE-2026-58395?
How do I fix CVE-2026-58395?
No fix has been published for CVE-2026-58395 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-58395 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58395 exists.
Sources
Also known as GHSA-98h6-479q-9q3w.