Remote code execution via malicious DHCP options
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
The BOOTP file field is written to the lease file without escaping embedded double-quotes, allowing injection of arbitrary dhclient.conf directives. When the lease file is subsequently re-parsed by dhclient, e.g., after a system restart, an attacker-controlled field from the lease is passed to dhclient-script(8), which evaluates it. A rogue DHCP server may be able to execute arbirary code as root on a system running dhclient.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FreeBSD | FreeBSD | 15.0-RELEASE to before p7; 14.4-RELEASE to before p3; 14.3-RELEASE to before p12; 13.5-RELEASE to before p13 | p7, p3, p12, p13 | Patch available | CNA |
- FreeBSD VendorFreeBSD Affected 15.0-RELEASE to before p7; 14.4-RELEASE to before p3; 14.3-RELEASE to before p12; 13.5-RELEASE to before p13 Fixed in p7, p3, p12, p13 Patch available CNA
CPE configurations NVD · 37
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:freebsd:freebsd:13.5:-:*:*:*:*:*:* | 13.5 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:beta3:*:*:*:*:*:* | 13.5 beta3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p1:*:*:*:*:*:* | 13.5 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p10:*:*:*:*:*:* | 13.5 p10 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p11:*:*:*:*:*:* | 13.5 p11 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p12:*:*:*:*:*:* | 13.5 p12 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p2:*:*:*:*:*:* | 13.5 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p3:*:*:*:*:*:* | 13.5 p3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p4:*:*:*:*:*:* | 13.5 p4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p5:*:*:*:*:*:* | 13.5 p5 | Vulnerable | FreeBSD |
- cpe:2.3:o:freebsd:freebsd:13.5:-:*:*:*:*:*:* Versions 13.5 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:beta3:*:*:*:*:*:* Versions 13.5 beta3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p1:*:*:*:*:*:* Versions 13.5 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p10:*:*:*:*:*:* Versions 13.5 p10 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p11:*:*:*:*:*:* Versions 13.5 p11 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p12:*:*:*:*:*:* Versions 13.5 p12 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p2:*:*:*:*:*:* Versions 13.5 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p3:*:*:*:*:*:* Versions 13.5 p3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p4:*:*:*:*:*:* Versions 13.5 p4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p5:*:*:*:*:*:* Versions 13.5 p5 Vulnerable ·FreeBSD
Show 27 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:freebsd:freebsd:13.5:p6:*:*:*:*:*:* | 13.5 p6 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p7:*:*:*:*:*:* | 13.5 p7 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p8:*:*:*:*:*:* | 13.5 p8 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.5:p9:*:*:*:*:*:* | 13.5 p9 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:-:*:*:*:*:*:* | 14.3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p1:*:*:*:*:*:* | 14.3 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p10:*:*:*:*:*:* | 14.3 p10 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p11:*:*:*:*:*:* | 14.3 p11 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p2:*:*:*:*:*:* | 14.3 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p3:*:*:*:*:*:* | 14.3 p3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p4:*:*:*:*:*:* | 14.3 p4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p5:*:*:*:*:*:* | 14.3 p5 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p6:*:*:*:*:*:* | 14.3 p6 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p7:*:*:*:*:*:* | 14.3 p7 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p8:*:*:*:*:*:* | 14.3 p8 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.3:p9:*:*:*:*:*:* | 14.3 p9 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:* | 14.4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:* | 14.4 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:* | 14.4 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:14.4:rc1:*:*:*:*:*:* | 14.4 rc1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:-:*:*:*:*:*:* | 15.0 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:* | 15.0 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:* | 15.0 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:* | 15.0 p3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:* | 15.0 p4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:* | 15.0 p5 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:* | 15.0 p6 | Vulnerable | FreeBSD |
- cpe:2.3:o:freebsd:freebsd:13.5:p6:*:*:*:*:*:* Versions 13.5 p6 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p7:*:*:*:*:*:* Versions 13.5 p7 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p8:*:*:*:*:*:* Versions 13.5 p8 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.5:p9:*:*:*:*:*:* Versions 13.5 p9 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:-:*:*:*:*:*:* Versions 14.3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p1:*:*:*:*:*:* Versions 14.3 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p10:*:*:*:*:*:* Versions 14.3 p10 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p11:*:*:*:*:*:* Versions 14.3 p11 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p2:*:*:*:*:*:* Versions 14.3 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p3:*:*:*:*:*:* Versions 14.3 p3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p4:*:*:*:*:*:* Versions 14.3 p4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p5:*:*:*:*:*:* Versions 14.3 p5 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p6:*:*:*:*:*:* Versions 14.3 p6 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p7:*:*:*:*:*:* Versions 14.3 p7 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p8:*:*:*:*:*:* Versions 14.3 p8 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.3:p9:*:*:*:*:*:* Versions 14.3 p9 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:* Versions 14.4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:* Versions 14.4 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:* Versions 14.4 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:14.4:rc1:*:*:*:*:*:* Versions 14.4 rc1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:-:*:*:*:*:*:* Versions 15.0 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:* Versions 15.0 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:* Versions 15.0 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:* Versions 15.0 p3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:* Versions 15.0 p4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:* Versions 15.0 p5 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:* Versions 15.0 p6 Vulnerable ·FreeBSD
Remediation
- Fix · CNA FreeBSD (FreeBSD) Fixed in p7, p3, p12, p13
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
FreeBSD p12, p13 and 2 more versions
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2026-30795 Remotely triggerable out-of-bounds heap write in dhclientPriority MEDIUM 40
- TI-2026-06287 pf can overflow the stack parsing crafted SCTP packetsPriority LOW 39
- TI-2026-27657 Heap overflow in libnvPriority LOW 37
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42511
- 2026-10-03 Alias added: GHSA-xg3v-hpwh-q32x
References
More Freebsd vulnerabilities
- TI-2011-04182 Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT… CVSS 2.0HIGH 10.0
- TI-2007-03684 Integer overflow in print-bgp.c in the BGP dissector in tcpdump 3.9.6 and earlier allows… CVSS 3.1CRITICAL 9.8
- TI-2002-00376 Integer overflow in xdr_array function in RPC servers for operating systems that use… CVSS 3.1CRITICAL 9.8
- TI-2024-05929 Openssh: regresshion - race condition in ssh allows rce/dos CVSS 3.1HIGH 8.1
- TI-2003-00437 Off-by-one error in the fb_realpath() function, as derived from the realpath function in… CVSS 3.1CRITICAL 9.8
- TI-2003-00642 The prescan function in Sendmail 8.12.9 allows remote attackers to execute arbitrary code… CVSS 2.0HIGH 10.0
Sources
- CVE-2026-42511 · CVE Program
- CVE-2026-42511 · NVD
- FIRST EPSS
- GHSA-xg3v-hpwh-q32x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences