8.1high
Remote code execution via malicious DHCP options
- Severity
- 8.1high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- freebsd
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FreeBSD FreeBSD | from 15.0-RELEASE before p7, from 14.4-RELEASE before p3, from 14.3-RELEASE before p12, from 13.5-RELEASE before p13, 13.5, 14.3, 14.4, 15.0 | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
El campo de archivo BOOTP se escribe en el archivo de concesión sin escapar las comillas dobles incrustadas, permitiendo la inyección de directivas dhclient.conf arbitrarias. Cuando el archivo de concesión es posteriormente re-analizado por dhclient, por ejemplo, después de un reinicio del sistema, un campo controlado por el atacante de la concesión se pasa a dhclient-script(8), que lo evalúa. Un servidor DHCP malicioso podría ejecutar código arbitrario como root en un sistema que ejecuta dhclient.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42511 changed 2026-05-01 | CVE Terms of Use |
| NVD | CVE-2026-42511 changed 2026-11-11 | Public domain |