CVE-2026-57154
Description
OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.11 and 26.4.1p1, authenticated Web UI or API users with delegated access to affected settings can submit CR or LF characters in fields expected to contain one line, causing generated privileged service configuration files to contain additional attacker-controlled directives or policy lines. The confirmed Dnsmasq path includes dhcp_boot.filename, dhcp_boot.servername, dhcp_boot.address, and dhcp_options.value, which are rendered into /usr/local/etc/dnsmasq.conf; access through page-services-dnsforwarder covers api/dnsmasq/*. Related affected fields span OpenVPN, DHCPv6, Unbound, IPsec, NTP, PPP or MPD, Monit, firewall, sudo, WebGUI, and System General configuration. Applying or restarting the affected service can alter behavior beyond the delegated setting, create service-side files, cross RBAC boundaries, or cause denial of service. Line injection through Monit mail password and adjacent Monit text fields into /usr/local/etc/monitrc demonstrated root command execution. Arbitrary shell command execution was not confirmed for the Dnsmasq path. This issue is fixed in versions 26.1.11 and 26.4.1p1.
Weakness
- CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component
- CWE-93: Improper Neutralization of CRLF Sequences
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-07 |
Timeline
- 2026-11-03Published by the CNA18:10 UTC
- 2026-11-07CISA SSVC decision recorded4 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| opnsense core |
References
- https://github.com/opnsense/core/commit/52b18e67a9ec4596a64ac3a53f3aa102ced55293
- https://github.com/opnsense/core/commit/6c3be9a11699879fe50aea1c30e50de5864601d7
- https://github.com/opnsense/core/security/advisories/GHSA-fq94-cxvc-9r7w
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-57154'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-57154'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-57154'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-57154'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).