Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPosition on network segment
-
DeliverySend malicious DHCP response
-
ExploitTrigger heap overflow in dhclient
-
ExecutionOverwrite heap metadata
-
PersistExecute arbitrary code
-
ImpactEstablish persistence or lateral movement
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must control or intercept DHCP traffic to the target FreeBSD system, requiring network position as DHCP server, man-in-the-middle, or on the same broadcast domain. Vulnerable dhclient must be actively requesting or renewing DHCP leases when the malicious packet arrives. No user interaction or authentication required (CVSS PR:N/UI:N), but the high attack complexity (AC:H) reflects the need for network positioning and precise packet crafting. Exploitation is limited to scenarios where dhclient is enabled and actively querying DHCP servers, which excludes systems with static IP configurations. The attacker does not need prior system access but must overcome network segmentation and potentially DHCP server validation mechanisms in enterprise environments. |
| Impact | Real-world risk is moderate despite the high CVSS score of 8.1. The CVSS vector (AV:N/AC:H/PR:N/UI:N) indicates network-accessible remote exploitation without authentication, but attack complexity is high because the attacker must occupy a network position to deliver malicious DHCP responses (man-in-the-middle or rogue DHCP server). EPSS score of 0.03% (8th percentile) suggests extremely low observed exploitation probability in the wild. SSVC framework marks this as automatable with no current exploitation and partial technical impact, indicating theoretical risk exceeds practical threat level. The CISA KEV does not list this vulnerability, confirming no confirmed active exploitation. However, the potential for remote code execution combined with network attack vector means this warrants prioritization for internet-facing or untrusted network environments where DHCP clients operate. The high complexity likely stems from needing precise heap manipulation to achieve code execution versus denial of service. Organizations with dhclient on secured internal networks face lower immediate risk than those on public or hostile networks. |
| Exploit ScenarioDerived | An attacker positioned on the network segment (via compromised router, rogue access point, or man-in-the-middle position) sends a specially crafted DHCP response packet to a vulnerable FreeBSD system performing DHCP discovery or renewal. The malicious packet contains carefully structured options that trigger the heap buffer overflow in dhclient's environment array expansion code, potentially allowing the attacker to overwrite heap metadata and achieve arbitrary code execution with dhclient's privileges. While denial of service via crash is straightforward, achieving reliable remote code execution requires heap manipulation expertise and may vary by FreeBSD version and memory allocator behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 01, 2026
Heap buffer overflow in FreeBSD dhclient enables potential remote code execution when processing maliciously crafted DHCP packets. Affects FreeBSD 13.5, 14.3, 14.4, and 15.0 branches prior to security patches. EPSS exploitation probability is low (0.03%, 8th percentile) and no active exploitation confirmed, but SSVC classifies this as automatable with partial technical impact. The vulnerability requires network position to send crafted DHCP responses (CVSS AV:N/AC:H), making exploitation complexity high but not requiring authentication.
Earlier versions of this analysis (1)
Heap buffer overflow in FreeBSD dhclient allows remote code execution via malicious DHCP responses. The vulnerability affects the dhclient-script environment variable expansion logic across FreeBSD 13.5, 14.3, 14.4, and 15.0 branches. Network-positioned attackers on the same broadcast domain can exploit this without authentication (CVSS AV:N/PR:N) by operating a rogue DHCP server. Despite the 7.3 CVSS score and confirmed patch availability from FreeBSD, EPSS indicates only 0.03% exploitation probability (8th percentile), suggesting limited real-world targeting. No CISA KEV listing or public exploit identified at time of analysis.
RemediationAI
Apply FreeBSD security patches immediately by upgrading to patched releases: FreeBSD 14.3-RELEASE-p12 or later, FreeBSD 14.4-RELEASE-p3 or later, FreeBSD 13.5-RELEASE-p13 or later, or FreeBSD 15.0-RELEASE-p7 or later. Follow upgrade procedures at https://security.freebsd.org/advisories/FreeBSD-SA-26:15.dhclient.asc for binary updates via freebsd-update or source-based patching. If immediate patching is impossible, implement network segmentation to isolate dhclient systems from untrusted networks and consider static IP configuration to disable DHCP entirely on critical systems, though this sacrifices dynamic network configuration convenience and may break cloud or enterprise DHCP-dependent infrastructure. For temporary risk reduction, deploy DHCP snooping on network switches to validate DHCP server authenticity and prevent rogue DHCP responses, though this requires managed switch infrastructure and careful configuration to avoid disrupting legitimate DHCP services.
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
The dhclient DHCP client daemon in FreeBSD contains a heap buffer overflow (CWE-122) in its environment variable handling logic. When dhclient receives DHCP packets and prepares to invoke the dhclient-script helper, it builds an array of environment string pointers. The memory reallocation routine miscalculates the required buffer size during array expansion, leading to a heap-based buffer overrun. This affects the ISC DHCP client implementation bundled with FreeBSD across multiple release branches. The vulnerability lies in unsafe memory management during dynamic array resizing, a common class of memory corruption bugs that can compromise control flow if exploitable. The CPE identifier cpe:2.3:a:freebsd:freebsd indicates this is specific to the FreeBSD operating system distribution's dhclient implementation.
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 Vendor (freebsd) · only source for this CVE.
CVSS VectorVendor: freebsd
Lifecycle Timeline
4DescriptionCVE.org
As dhclient is building an environment to pass to dhclient-script, it may need to resize the array of string pointers. The code which expands the array incorrectly calculates its new size when requesting memory, resulting in a heap buffer overrun.
A specially crafted packet can cause dhclient to overrun its buffer of environment entries. This can result in a crash, but it may be possible to leverage this bug to achieve remote code execution.
Executive ViewAI
A heap buffer overflow in FreeBSD's dhclient (CVE-2026-42512, CVSS 8.1) could enable remote code execution on affected systems when processing malicious DHCP responses, requiring network proximity but no authentication. FreeBSD 13.5, 14.3, 14.4, and 15.0 systems are vulnerable; organizations running these versions should prioritize assessment and mitigation since no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict DHCP traffic to trusted internal networks only via firewall rules; (2) Use static IP addressing instead of dhclient where operationally feasible; (3) Segment systems running vulnerable FreeBSD versions from untrusted network segments; (4) Monitor FreeBSD security advisory channels for patch release.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
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-26357
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB