CVE-2026-45158 OPNsense: Command Injection via Attacker-Controlled DHCP Config
Remote attackers can execute arbitrary code as root via unsanitized DHCP configuration input in OPNsense.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-45158?
CVE-2026-45158 is a critical command injection vulnerability in opnsense core, published on 13 May 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
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.
Weakness: CWE-88
Which versions are affected by CVE-2026-45158?
It affects 1 product.
Products include Opnsense Opnsense.
How do I fix CVE-2026-45158?
No fix has been published for CVE-2026-45158 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-45158 being exploited?
There is no known exploitation of CVE-2026-45158 in the wild and no public exploit code.
Other vulnerabilities in opnsense core
Sources
Also known as GHSA-5rx3-w735-74wm.