Skip to main content

FreeBSD dhclient CVE-2026-42511

| EUVDEUVD-2026-26350 HIGH
Improper Neutralization of Quoting Syntax (CWE-149)
2026-04-30 freebsd
8.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position rogue DHCP server on target network
  2. Delivery
    Send crafted DHCP response with quote-injected BOOTP field
  3. Exploit
    Victim dhclient writes unsanitized lease data
  4. Execution
    System restart triggers lease file re-parse
  5. Persist
    Injected directives execute via dhclient-script
  6. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Apr 30, 2026 - 14:22 CVSS 7.3

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

FreeBSD 14.4-RELEASE <p3
FreeBSD 14.3-RELEASE <p12
FreeBSD 15.0-RELEASE <p7
FreeBSD 13.5-RELEASE <p13

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

NVD PRIMARY 8.1 HIGH
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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
May 01, 2026 - 16:29 vuln.today
v2 - CVSS changed
CVSS changed
May 01, 2026 - 16:22 NVD
7.3 (HIGH) 8.1 (HIGH)
CVSS changed
Apr 30, 2026 - 14:22 NVD
7.3 (HIGH)
CVE Published
Apr 30, 2026 - 06:56 nvd
HIGH 8.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2012-0217 HIGH POC
7.2 Jun 12

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

CVE-2025-14558 HIGH POC
7.2 Mar 09

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess

CVE-2020-1967 HIGH POC
7.5 Apr 21

Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due

CVE-2013-4854 HIGH POC
7.8 Jul 29

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

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2013-2171 MEDIUM POC
6.9 Jul 02

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

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2016-5766 HIGH POC
8.8 Aug 07

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used

CVE-2016-1879 HIGH POC
7.5 Jan 29

The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w

CVE-2020-7457 HIGH POC
8.1 Jul 09

In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy