Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPosition rogue DHCP server on target network
-
DeliverySend crafted DHCP response with quote-injected BOOTP field
-
ExploitVictim dhclient writes unsanitized lease data
-
ExecutionSystem restart triggers lease file re-parse
-
PersistInjected directives execute via dhclient-script
-
ImpactArbitrary code runs as root
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Requires victim FreeBSD system to obtain DHCP leases from attacker-controlled or attacker-intercepted DHCP server responses. Exploitation specifically depends on network topology allowing rogue DHCP server deployment or DHCP response spoofing-feasible on untrusted networks (public WiFi, guest networks, physically accessible Ethernet ports) or through compromise of existing DHCP infrastructure. The vulnerability triggers upon dhclient re-parsing its lease file, which occurs during system restarts, dhclient daemon restarts, or explicit lease renewal operations. No user interaction required (UI:N) once the malicious lease is obtained. Systems using static IP configuration or isolated from untrusted DHCP servers are not exploitable. The high attack complexity (AC:H) reflects the requirement for network-layer access and DHCP server positioning, limiting exploitation to scenarios where attackers have network adjacency or can perform layer-2 man-in-the-middle attacks. |
| Impact | Real-world risk assessment reveals significant nuance. CVSS 8.1 (High) reflects the severe impact-root code execution with full confidentiality, integrity, and availability compromise. However, AC:H (high attack complexity) requires the attacker to position a rogue DHCP server on the victim's network or perform a man-in-the-middle attack, substantially limiting exploitation scenarios. EPSS score of 0.02% (5th percentile) indicates extremely low observed exploitation probability in the wild, aligning with SSVC's 'Exploitation: none' status. The SSVC framework marks this as 'Automatable: yes' but 'Technical Impact: partial'-note the discrepancy where CVSS indicates high impact across all CIA triad elements while SSVC assesses partial impact, likely reflecting that exploitation requires specific network positioning rather than internet-wide scanning. No CISA KEV listing confirms this is not being actively exploited at scale. This is a genuine high-severity vulnerability for environments with untrusted network infrastructure (public WiFi, guest networks, compromised network equipment) but lower priority for enterprise networks with controlled DHCP infrastructure and network segmentation. The persistence aspect-exploitation triggers on system restart-makes it particularly concerning for laptops moving between networks. |
| Exploit ScenarioDerived | Attacker operates a rogue DHCP server on a network segment accessible to the target FreeBSD system, either by physically connecting to public/guest WiFi networks or compromising existing network infrastructure. When the victim system requests a DHCP lease, the malicious server responds with a crafted BOOTP file field containing injected dhclient.conf directives embedded with unescaped double-quotes (e.g., 'option"; malicious-directive "'). The FreeBSD dhclient writes this to its lease file without sanitization. Upon next system restart or dhclient process restart, the lease file is re-parsed, malicious directives execute via dhclient-script with root privileges, granting the attacker complete system control. No public exploit code identified at time of analysis, though the injection technique is straightforward for attackers with DHCP protocol knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 01, 2026
Remote code execution as root in FreeBSD dhclient allows malicious DHCP servers to inject arbitrary commands via unsanitized BOOTP file field in DHCP responses. When dhclient writes lease data without escaping embedded double-quotes and later re-parses it (e.g., after system restart), injected dhclient.conf directives execute through dhclient-script. EPSS score is notably low (0.02%, 5th percentile) with SSVC indicating no observed exploitation and partial technical impact, suggesting limited real-world targeting despite the high-severity nature of root code execution. No public exploit code identified at time of analysis.
Earlier versions of this analysis (1)
Remote code execution as root in FreeBSD dhclient allows rogue DHCP servers to inject arbitrary commands through unescaped double-quotes in BOOTP file fields. When dhclient re-parses the lease file after system restart, the malicious directives execute via dhclient-script with root privileges. This affects FreeBSD 13.5, 14.3, 14.4, and 15.0 releases. EPSS exploitation probability is low at 0.02% (5th percentile), with no active exploitation confirmed in CISA KEV. Vendor patch available per FreeBSD-SA-26:12.
RemediationAI
Apply FreeBSD security patches immediately: upgrade to FreeBSD 13.5-RELEASE-p13, 14.3-RELEASE-p12, 14.4-RELEASE-p3, or 15.0-RELEASE-p7 depending on your major version branch. Patches available through freebsd-update utility or by rebuilding from patched sources as detailed in FreeBSD-SA-26:12.dhclient advisory (https://security.freebsd.org/advisories/FreeBSD-SA-26:12.dhclient.asc). For systems where immediate patching is not feasible, configure static IP addressing to eliminate DHCP client usage entirely-this prevents exploitation but sacrifices automatic network configuration and may complicate mobile device management. Alternatively, restrict DHCP server access via network segmentation and MAC address filtering on switching infrastructure to allow only trusted DHCP servers, though this requires existing network access control infrastructure and does not protect against compromised legitimate servers. Organizations using FreeBSD in untrusted network environments (laptops on public networks) should prioritize patching over mitigations due to the severity of root code execution.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DHCP (Dynamic Host Configuration Protocol) clients like FreeBSD's dhclient receive configuration data from DHCP servers, including the BOOTP file field (typically used for network boot file paths). The vulnerability stems from CWE-149 (Improper Neutralization of Quoting Syntax), where dhclient fails to escape double-quote characters when writing the BOOTP file field to its lease database file. When dhclient subsequently re-parses this lease file-either on daemon restart or system reboot-the maliciously crafted field is interpreted as dhclient.conf configuration directives rather than data. These directives are then passed to dhclient-script, a shell script that executes with root privileges to configure network interfaces. The affected CPE (cpe:2.3:a:freebsd:freebsd) identifies the FreeBSD base system's DHCP client implementation. This is a classic quote injection vulnerability where insufficient input sanitization allows data fields to break out of their intended context and become executable code.
Know when Freebsd 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:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-42511 is a high-severity remote code execution vulnerability in FreeBSD dhclient that allows unauthenticated attackers on the network to execute arbitrary commands with root privileges by operating a malicious DHCP server. Organizations running FreeBSD systems that obtain IP configuration via DHCP face potential complete system compromise, though real-world exploitation appears limited at this time based on available threat intelligence.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to trusted DHCP servers only via firewall rules and network segmentation; (2) Use static IP addressing instead of DHCP where operationally feasible; (3) Disable dhclient startup in rc.conf on non-critical systems; (4) Monitor dhclient process execution and lease file modifications for anomalies; (5) Isolate affected FreeBSD systems to restricted network segments until patching is available.
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.
The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and
The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess
Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due
The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS
An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used
The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w
In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1
EUVD-2026-26350
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB