Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-25217

HIGH 7.4PoCEPSS 94%

A buffer overrun in lease file parsing code can be used to exploit a common vulnerability shared by dhcpd and dhclient

Mitigation

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

Who should check

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
6.12% chance of exploitation in 30 days (percentile 94, 2026-11-26)
CWE
CWE-119
Published
Modified

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

Package / productAffectedFixedSource
ISC DHCP>= 4.1 ESV, < 4.1-ESV-R16-P1; >= 4.4, < 4.4.2-P1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors