# CVE-2021-25217: A buffer overrun in lease file parsing code can be used to exploit a common vulnerability shared by dhcpd and dhclient

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 6.12% (percentile 94, 2026-11-26)
- **CWE:** CWE-119
- **Published:** 2021-05-26T22:10:11.312Z
- **Modified:** 2026-06-17T03:41:39.657Z

## Who should check

- Anyone running ISC DHCP \>= 4.1 ESV, \< 4.1-ESV-R16-P1; \>= 4.4, \< 4.4.2-P1

## Description

In ISC DHCP 4.1-ESV-R1 -\> 4.1-ESV-R16, ISC DHCP 4.4.0 -\> 4.4.2 (Other branches of ISC DHCP (i.e., releases in the 4.0.x series or lower and releases in the 4.3.x series) are beyond their End-of-Life (EOL) and no longer supported by ISC. From inspection it is clear that the defect is also present in releases from those series, but they have not been officially tested for the vulnerability), The outcome of encountering the defect while reading a lease that will trigger it varies, according to: the component being affected (i.e., dhclient or dhcpd) whether the package was built as a 32-bit or 64-bit binary whether the compiler flag -fstack-protection-strong was used when compiling In dhclient, ISC has not successfully reproduced the error on a 64-bit system. However, on a 32-bit system it is possible to cause dhclient to crash when reading an improper lease, which could cause network connectivity problems for an affected system due to the absence of a running DHCP client process. In dhcpd, when run in DHCPv4 or DHCPv6 mode: if the dhcpd server binary was built for a 32-bit architecture AND the -fstack-protection-strong flag was specified to the compiler, dhcpd may exit while parsing a lease file containing an objectionable lease, resulting in lack of service to clients. Additionally, the offending lease and the lease immediately following it in the lease database may be improperly deleted. if the dhcpd server binary was built for a 64-bit architecture OR if the -fstack-protection-strong compiler flag was NOT specified, the crash will not occur, but it is possible for the offending lease and the lease which immediately followed it to be improperly deleted.

## Affected and fixed versions

- ISC DHCP: \>= 4.1 ESV, \< 4.1-ESV-R16-P1; \>= 4.4, \< 4.4.2-P1 (cvelist)

## Mitigation

- Upgrade ISC DHCP to 4.4.2-P1 or later.
- Vendor workaround: None known.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-25217. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-25217.md
Affected: ISC DHCP >= 4.1 ESV, < 4.1-ESV-R16-P1; >= 4.4, < 4.4.2-P1
Fixed in: ISC DHCP 4.1-ESV-R16-P1, ISC DHCP 4.4.2-P1

Steps:
1. Search this machine and project for ISC DHCP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-25217 being exploited?

There is no confirmed exploitation: CVE-2021-25217 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 6.12% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-25217?

High: CVSS 7.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-25217?

ISC DHCP \>= 4.1 ESV, \< 4.1-ESV-R16-P1; \>= 4.4, \< 4.4.2-P1.

### Is there a fix for CVE-2021-25217?

Yes. Fixed in ISC DHCP 4.1-ESV-R16-P1, ISC DHCP 4.4.2-P1. Upgrade ISC DHCP to 4.4.2-P1 or later. Vendor workaround: None known.

### How do I check if I'm affected by CVE-2021-25217?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z2LB42JWIV4M4WDNXX5VGIP26FEYWKIF/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5QI4DYC7J4BGHEW3NH4XHMWTHYC36UK4/>
- vendor: <https://security.gentoo.org/glsa/202305-22>
- patch: <http://www.openwall.com/lists/oss-security/2021/05/26/6>
- patch: <https://cert-portal.siemens.com/productcert/pdf/ssa-406691.pdf>
- patch: <https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf>
- exploit: <https://kb.isc.org/docs/cve-2021-25217>
- other: <https://lists.debian.org/debian-lts-announce/2021/06/msg00002.html>
- other: <https://security.netapp.com/advisory/ntap-20220325-0011/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-25217>

HTML: <https://flawdb.com/CVE-2021-25217> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-25217>
