CVE-2026-42512: dhclient - Remote Code Execution
- Cve: CVE-2026-42512
- Name: dhclient - Remote Code Execution
- Description: 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.
- Impact: Remote attackers can cause a crash or potentially execute arbitrary code remotely, leading to full system compromise.
- Remediation: Update to the latest version of dhclient.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01423
- Epss percentile: 0.73446
- Assignee: [email protected]
- Published at: 2026-04-30T09:16:03Z
- Age in days: 208
- Modified at: 2026-11-11T21:10:00Z
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42512
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
References
| Url | Source | Tags |
|---|---|---|
| https://security.freebsd.org/advisories/FreeBSD-SA-26:15.dhclient.asc | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| freebsd:freebsd | = 15.0, = 15.0 p1, = 15.0 p2, = 15.0 p3, = 15.0 p4, = 15.0 p5, = 15.0 p6, = 14.4, = 14.4 p1, = 14.4 p2, = 14.4 rc1, = 14.3, = 14.3 p1, = 14.3 p10, = 14.3 p11, = 14.3 p2, = 14.3 p3, = 14.3 p4, = 14.3 p5, = 14.3 p6, = 14.3 p7, = 14.3 p8, = 14.3 p9, = 13.5, = 13.5 beta3, = 13.5 p1, = 13.5 p10, = 13.5 p11, = 13.5 p12, = 13.5 p2, = 13.5 p3, = 13.5 p4, = 13.5 p5, = 13.5 p6, = 13.5 p7, = 13.5 p8, = 13.5 p9 | no | nvd | /v1/products/freebsd/freebsd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 164903
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports