Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain OPNsense admin credentials
-
DeliveryReach web GUI over network
-
ExploitInject shell metacharacters into DHCP field
-
InstallSave configuration to trigger backend script
-
C2Script executes payload as root
-
ExecuteEstablish persistence on firewall
-
ImpactPivot into protected network segments
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires (1) authenticated access to the OPNsense web GUI with privileges sufficient to edit DHCP configuration on an interface (PR:H in the CVSS vector), (2) the target running OPNsense core prior to 26.1.8 with DHCP service enabled on at least one configurable interface so the vulnerable shell-script processing path is reached, and (3) network reachability to the web management interface (AV:N). No user interaction by a second party is needed (UI:N). The principal limiting factor is the high-privilege prerequisite: in deployments where the admin UI is restricted to an internal management network and admin accounts are tightly controlled with MFA, the realistic attack surface is small and is mostly insider misuse or post-compromise privilege chaining rather than direct external exploitation. |
| Impact | Signals are mixed. CVSS 9.1 is driven primarily by the scope change (S:C) and total CIA impact when shell access as root is achieved - but the same vector specifies PR:H, meaning the attacker must already hold high privileges (an administrative session capable of editing DHCP interface configuration). That sharply narrows the realistic threat to insider misuse, post-auth pivoting after credential theft, or chained exploitation following an authentication bypass. SSVC reflects this nuance: Exploitation=none, Automatable=no, Technical Impact=total, which CISA's framework typically maps to a 'Track' rather than 'Act' decision. EPSS at 0.23% (46th percentile) and absence from CISA KEV are consistent with no observed exploitation. The high CVSS therefore overstates urgency relative to real-world risk for hardened deployments - but for any OPNsense instance where the admin UI is exposed beyond a trusted management network, or where lower-privilege admin roles can reach DHCP settings, this is a meaningful root-RCE primitive that should be patched promptly. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrator (or sufficiently privileged operator) credentials for the OPNsense web UI - for example via phishing of a network engineer, reused credentials, or post-compromise pivoting from a management host - navigates to the DHCP configuration page for an interface and enters a crafted value containing shell metacharacters into a field that is later concatenated into a backend shell script. When the configuration is applied, the script executes the injected command as root, giving the attacker a persistent root shell on the firewall itself, from which they can sniff traffic, alter NAT/firewall rules, or pivot deeper into protected segments. No public proof-of-concept has been identified, but the bug class (argument injection into a root-run shell script) is straightforward to weaponize once the vulnerable field is identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Remote code execution in OPNsense firewall (core versions prior to 26.1.8) allows authenticated administrators to execute arbitrary commands as root by injecting shell metacharacters into DHCP interface configuration fields that are passed unsanitized to an underlying shell script. The flaw carries a 9.1 CVSS score with scope change reflecting privilege escalation from the web UI context to OS root, though no public exploit has been identified at time of analysis and EPSS estimates only a 0.23% probability of near-term exploitation.
RemediationAI
Vendor-released patch: OPNsense core 26.1.8 - upgrade via the built-in firmware update mechanism (System → Firmware → Updates) and consult the GitHub Security Advisory at https://github.com/opnsense/core/security/advisories/GHSA-5rx3-w735-74wm for advisory details. If immediate patching is not possible, compensating controls should focus on shrinking the population of accounts that can reach the vulnerable DHCP configuration: restrict the web GUI to a dedicated management VLAN or VPN (lan_anchor/firewall rules on the WebGUI anchor), enforce MFA on admin logins, and review the privilege list under System → Access → Users to ensure only fully trusted operators hold the 'Services: DHCPv4/DHCPv6: Edit' or equivalent permissions - accepting the trade-off that delegated network operations become slower. Disabling DHCP server functionality on affected interfaces also removes the injection sink but breaks address assignment for any clients that rely on it.
Affected VersionsENISA
Affected Packages
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
OPNsense is a FreeBSD-based open-source firewall and routing platform forked from pfSense, where backend configuration changes are typically applied by shell scripts that consume values rendered from the web GUI's XML config store. CPE data confirms the affected product is opnsense:opnsense (the 'core' package per the EUVD entry). The root cause is CWE-88 (Improper Neutralization of Argument Delimiters in a Command, i.e., argument injection): user-supplied DHCP interface configuration values are interpolated into a shell script without proper quoting or sanitization, so an operator who can write to those fields can break out of the intended argument context and have the shell interpret attacker-controlled tokens as commands executed by the script's root-privileged process.
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
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.8, unsanitized user input is passed to the DHCP configuration of the configured interface, which is processed by a shell script, allowing remote code execution as root on the underlying operating system. This vulnerability is fixed in 26.1.8.
Executive ViewAI
OPNsense firewall deployments running versions before 26.1.8 are vulnerable to remote code execution as root by authenticated administrators. While no public exploit has been identified at time of analysis, a compromised administrator account could enable complete network infrastructure compromise, including potential data exfiltration or service disruption. Organizations should prioritize patching and review administrative access controls immediately.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Insecure permissions in the configuration directory (/conf/) of OPNsense Community Edition before 23.7 and Business Edit
DECISO OPNsense 23.1 does not impose rate limits for authentication, allowing attackers to perform a brute-force attack
A command injection vulnerability in the component /api/cron/settings/setJob/ of OPNsense Community Edition before 23.7
A command injection vulnerability in the component diag_backup.php of OPNsense Community Edition before 23.7 and Busines
/ui/cron/item/open in the Cron component of OPNsense Community Edition before 23.7 and Business Edition before 23.4.2 al
OPNsense Community Edition before 23.7 and Business Edition before 23.4.2 was discovered to contain insecure permissions
Insecure permissions exist for configd.socket in OPNsense Community Edition before 23.7 and Business Edition before 23.4
A directory traversal vulnerability in the Captive Portal templates of OPNsense Community Edition before 23.7 and Busine
A Cross-Site Request Forgery (CSRF) in the System Halt API (/system/halt) of OPNsense Community Edition before 23.7 and
OPNsense 19.1 contains a stored cross-site scripting vulnerability that allows authenticated attackers to inject malicio
OPNsense 19.1 contains a stored cross-site scripting vulnerability in the system_advanced_sysctl.php endpoint that allow
OPNsense 19.1 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject ma
EUVD-2026-30202
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB