All vulnerabilities

Servers and applications

CVE-2026-45158

Command Injection via Attacker-Controlled DHCP Config

Severity
Critical 9.1
Published
12 May 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
26.1.8
Exploit chance
0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Argument injection (CWE-88)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Also known as
GHSA-5rx3-w735-74wm
Sources
NVD, Project advisories (GitHub)

Description

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.

Web UI allows users with page-interfaces privileges to enable and configure the interfaces. By configuring an interface to have DHCP enabled on IPv4, application lets users to set a hostname which will be used in the DHCP configuration file created later on.

In the src/etc/inc/interfaces.inc file, interface_dhcp_configure function processes user supplied input without validation. As can be seen in the function definition, between the line 3229 and 3245 it can be seen that dhcphostname parameter is written into dhclient..conf file.

Also in the DHCP_Config_File_Advanced function between line 3308 and 3380 following code section can be observed for creating the config.

From opnsense/core's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
OPNsenseServers and applications · cpe:a:opnsense:opnsense
  • Every version before 26.1.8
OPNsenseServers and applications · github:opnsense/core
  • Every version before 26.1.8

About OPNsense

open-source firewall

From Wikidata, CC0 1.0.
GitHub stars
4,802GitHub, 15 Nov 2026
Forks
1,029GitHub, 15 Nov 2026
License
2-clause BSD LicenseWikidata
Written in
PHP, CWikidata
First released
2 Jan 2015Wikidata
First published on GitHub
13 Dec 2014GitHub

Release lines

ReleaseLatestSecurity fixes
26.7 'Xenial Xenops'26.7.9Yes
26.1 'Witty Woodpecker'26.1.11Ended 15 Jul 2026
25.7 'Visionary Viper'25.7.11Ended 28 Jan 2026
25.1 'Ultimate Unicorn'25.1.12Ended 23 Jul 2025
24.7 'Thriving Tiger'24.7.12Ended 28 Jan 2025
24.1 'Savvy Shark'24.1.10Ended 25 Jul 2024

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-45158
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-45158
  • GitHub Advisory Database https://github.com/advisories/GHSA-5rx3-w735-74wm
  • github.com https://github.com/opnsense/core/security/advisories/GHSA-5rx3-w735-74wm