Skip to main content

OPNsense EUVDEUVD-2026-116116

| CVE-2026-57154 HIGH
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-11-03 GitHub_M
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with delegated-ACL account
  2. Delivery
    Submit CR/LF payload in single-line field
  3. Exploit
    Save injected directive into privileged config
  4. Execution
    Apply or restart affected service
  5. Impact
    Root daemon loads attacker directives (root command execution via Monit)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Requires (1) a valid OPNsense Web UI or API account whose delegated ACL grants access to one of the affected settings - e.g. page-services-dnsforwarder / api/dnsmasq/* for the confirmed Dnsmasq path, or the Monit, OpenVPN, Unbound, IPsec, NTP, PPP/MPD, DHCPv6, firewall, sudo, WebGUI or System General settings for the related fields; (2) the targeted service enabled (e.g. Dnsmasq DNS & DHCP must be active); and (3) the ability to apply or restart that service through the UI/API so the regenerated config is reloaded. Limiting factors that reduce real-world risk: exploitation is authenticated (PR:L, not pre-auth), is bounded to accounts that have been delegated the specific setting rather than full admins, and depends on the relevant service being in use; impact and whether it reaches command execution vary by component (root command execution confirmed only for Monit, not Dnsmasq). Affected: versions prior to 26.1.11 and prior to 26.4.1p1.

Impact

The input CVSS vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H, 8.1) is internally consistent: network-reachable (Web UI/API), low complexity, but PR:L means exploitation requires an authenticated account - specifically one holding delegated ACL access to an affected settings page. This is not a pre-auth internet-facing bug; it is a privilege/RBAC-boundary break usable by an insider or by an attacker who has already obtained limited delegated credentials. No EPSS score and no CISA KEV status were supplied in the input, so widespread-exploitation probability cannot be quantified and there is no evidence of active exploitation; the vuln.today Decision label is 'this_week' (not act_now/emergency). A public PoC is present: the GHSA advisory embeds a Python script and states the Dnsmasq path was dynamically validated in a lab. Signals therefore align on a genuine, credible, but access-gated issue rather than a drive-by: high technical impact (confirmed root command execution via the Monit path; integrity/availability damage to root-managed service configs across many components) tempered by the PR:L authentication requirement. For environments that use delegated/limited admin accounts this is a real RBAC-escalation priority worth patching promptly; for single-full-admin deployments the practical escalation benefit is smaller. Note the input vector sets C:N even though the confirmed Monit path yields root command execution (which would imply confidentiality impact) - this is a divergence between the published vector and the demonstrated worst case.

Exploit ScenarioDerived

An authenticated OPNsense user who was granted only delegated access to an affected settings page (for example page-services-dnsforwarder) submits a value containing CR/LF characters in a single-line field, breaking out of the intended generated line and appending attacker-controlled directives to a root-managed service config file. After the service is applied or restarted, the privileged daemon loads the injected directives - on the confirmed Monit path this was demonstrated to achieve root command execution, while the Dnsmasq path injects arbitrary dnsmasq directives (shell execution not confirmed there). A public PoC with a working Python validation script is published in the GHSA advisory, lowering the barrier to reproduction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 03, 2026

OPNsense core before 26.1.11 and 26.4.1p1 allows authenticated Web UI or API users with delegated access to affected settings to inject CR/LF characters into fields expected to hold a single line, causing generated privileged service configuration files to contain extra attacker-controlled directives or policy lines. The confirmed Dnsmasq path can add arbitrary dnsmasq directives through dhcp_boot.filename, dhcp_boot.servername, dhcp_boot.address, and dhcp_options.value, while related fields span OpenVPN, DHCPv6, Unbound, IPsec, NTP, PPP/MPD, Monit, firewall, sudo, WebGUI and System General settings, with impact varying by component; Monit mail password and adjacent text fields were demonstrated to reach root command execution, but arbitrary shell execution was not confirmed for Dnsmasq. The GitHub advisory includes a public proof-of-concept reference and lab reproduction steps for the Dnsmasq path, and no CISA KEV entry is present in the supplied intelligence.

RemediationAI

Upgrade OPNsense to 26.1.11 or 26.4.1p1; these are the fixed releases listed in GHSA-fq94-cxvc-9r7w, with upstream fix commits 52b18e67a9ec4596a64ac3a53f3aa102ced55293 and 6c3be9a11699879fe50aea1c30e50de5864601d7. After upgrading, apply or restart the affected services so the regenerated configuration files are loaded. The supplied advisory does not document a separate workaround, so the complete remediation is the vendor update to a fixed release.

Affected VersionsENISA

core < 26.1.11

Affected Packages

euvd core fix: 26.1.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a line-oriented configuration injection issue in OPNsense's PHP MVC settings layer, matching CWE-74 (improper neutralization of special elements in output used by a downstream component) and CWE-93 (CRLF injection). Fields that are logically single-line values are modeled as ordinary TextField values and are later rendered by Jinja templates directly into privileged service configuration files without rejecting or escaping carriage return and line feed characters. When the affected service is applied or restarted, the generated file is reloaded by a root-managed daemon and the injected lines become active configuration. In the confirmed Dnsmasq case, dhcp_boot.filename, dhcp_boot.servername, dhcp_boot.address and dhcp_options.value are written into /usr/local/etc/dnsmasq.conf, allowing a delegated page-services-dnsforwarder / api/dnsmasq/* user to add dnsmasq directives beyond the intended DHCP boot or option setting. The same pattern was confirmed in OpenVPN instance and inline-block fields, DHCPv6 advanced interface script, Unbound advanced/ACL/DNSBL fields, IPsec Swanctl and strongSwan attribute fields, NTP time server input, PPP/MPD PPPoE username, Monit mail password and adjacent text fields, firewall DNAT rule.tag, sudo_allow_group, WebGUI compression, and System General timezone. The privilege boundary is crossed because a user delegated only a specific settings page can alter root-managed service configuration; the independent assessment rates it CVSS 8.1 with network reachability, low complexity, PR:L (authenticated), no user interaction, and high confidentiality, integrity and availability impact, while noting that command execution is confirmed only for the Monit path.

Know when Opnsense gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 8.8 HIGH

Remote Web UI/API (AV:N), no special trigger conditions (AC:L, UI:N), but a delegated authenticated account is required (PR:L); confirmed Monit root command execution justifies C:H/I:H/A:H, same-host privilege crossing so S:U.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 03, 2026 - 19:18 EUVD
CVE Published
Nov 03, 2026 - 18:10 cve.org
HIGH 8.1

DescriptionCVE.org

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.

Technical POC Analysis

CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), with CWE-93 (CRLF injection) as the concrete sub-case.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

OPNsense, a widely used open-source firewall and routing platform, contains a high-severity configuration injection flaw (CVE-2026-57154) that allows authenticated users with delegated administrative privileges to inject malicious directives into critical system services. This could enable attackers to alter firewall rules, reroute DNS traffic, or execute commands as root, undermining the integrity of network security controls and potentially exposing the entire organization to further compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Medium
popular open-source FreeBSD firewall, moderate SMB and homelab deployment
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2023-39004 CRITICAL POC
9.8 Aug 09

Insecure permissions in the configuration directory (/conf/) of OPNsense Community Edition before 23.7 and Business Edit

CVE-2023-27152 CRITICAL POC
9.8 Oct 23

DECISO OPNsense 23.1 does not impose rate limits for authentication, allowing attackers to perform a brute-force attack

CVE-2023-39008 CRITICAL POC
9.8 Aug 09

A command injection vulnerability in the component /api/cron/settings/setJob/ of OPNsense Community Edition before 23.7

CVE-2023-39001 CRITICAL POC
9.8 Aug 09

A command injection vulnerability in the component diag_backup.php of OPNsense Community Edition before 23.7 and Busines

CVE-2023-39007 CRITICAL POC
9.6 Aug 09

/ui/cron/item/open in the Cron component of OPNsense Community Edition before 23.7 and Business Edition before 23.4.2 al

CVE-2023-39003 HIGH POC
7.5 Aug 09

OPNsense Community Edition before 23.7 and Business Edition before 23.4.2 was discovered to contain insecure permissions

CVE-2023-39005 HIGH POC
7.5 Aug 09

Insecure permissions exist for configd.socket in OPNsense Community Edition before 23.7 and Business Edition before 23.4

CVE-2023-38997 HIGH POC
7.2 Aug 09

A directory traversal vulnerability in the Captive Portal templates of OPNsense Community Edition before 23.7 and Busine

CVE-2023-38999 MEDIUM POC
6.5 Aug 09

A Cross-Site Request Forgery (CSRF) in the System Halt API (/system/halt) of OPNsense Community Edition before 23.7 and

CVE-2019-25373 MEDIUM POC
6.4 Feb 15

OPNsense 19.1 contains a stored cross-site scripting vulnerability that allows authenticated attackers to inject malicio

CVE-2019-25369 MEDIUM POC
6.4 Feb 15

OPNsense 19.1 contains a stored cross-site scripting vulnerability in the system_advanced_sysctl.php endpoint that allow

CVE-2019-25372 MEDIUM POC
6.1 Feb 15

OPNsense 19.1 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy