Skip to main content

OPNsense EUVDEUVD-2026-30202

| CVE-2026-45158 CRITICAL
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-05-13 security-advisories@github.com
9.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Obtain OPNsense admin credentials
  2. Delivery
    Reach web GUI over network
  3. Exploit
    Inject shell metacharacters into DHCP field
  4. Install
    Save configuration to trigger backend script
  5. C2
    Script executes payload as root
  6. Execute
    Establish persistence on firewall
  7. Impact
    Pivot 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

core < 26.1.8

Affected Packages

euvd core fix: 26.1.8

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

Vendor (github) PRIMARY 9.1 CRITICAL
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

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

Lifecycle Timeline

1
Patch available
May 13, 2026 - 23:17 EUVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 54% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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