CVE-2026-42511

Remote code execution via malicious DHCP options

State
Published
Severity
8.1 High
Published
Apr 30, 2026
Updated
May 1, 2026
Reserved
Apr 28, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-149 Improper Neutralization of Quoting Syntax

Affected Products

ProductVersions
FreeBSDFreeBSD
  • 15.0-RELEASE to before p7Affected
  • 14.4-RELEASE to before p3Affected
  • 14.3-RELEASE to before p12Affected
  • 13.5-RELEASE to before p13Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.