CVE-2018-5739
Failure to release memory may exhaust system resources
Mitigation
- Vendor workaround: + Monitoring and routinely restarting ISC Kea DHCPv4 and DHCPv6 services may be an effective mitigation for some production environments
- + Running a new build of Kea without any hook libraries that use the callout store is another option, though it may not be a viable option where the production environment is dependent on the other hooks that need to be omitted to avoid these symptoms. These hooks distributed by ISC do not use the callout store and are safe to use: Lease Commands, Stat Commands, Host Commands (a Kea Premium hook) and Subnet Commands (a subscriber-only hook provided to Kea support customers).
- + Reverting to Kea DHCP 1.3.0 may be possible for some production environments but because of differences in the database schema operators should check carefully before attempting rollback:
- - If using memfile storage entirely, there should not be any compatibility issues.
- - If using a database solution for hosts or leases, the 1.4.0 schema will be incompatible with ISC Kea 1.3.0; the database therefore must be restored from a pre-upgrade backup for this to be successful.
- - If you are unsure whether or not you can roll back to 1.3.0 without restoring a previous version of your database, you may send an e-mail to security-officer@isc.org describing your storage setup and we will advise.
Who should check
- Anyone running ISC Kea DHCP Kea DHCP 1.4.0
Vulnerability facts
- Affected
- ISC Kea DHCP Kea DHCP 1.4.0
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.5 (v3.0, CNA)CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/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: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.93% chance of exploitation in 30 days (percentile 81, 2026-11-26)
- CWE
- CWE-772
- Modified
Description
An extension to hooks capabilities which debuted in Kea 1.4.0 introduced a memory leak for operators who are using certain hooks library facilities. In order to support multiple requests simultaneously, Kea 1.4 added a callout handle store but unfortunately the initial implementation of this store does not properly free memory in every case. Hooks which make use of query4 or query6 parameters in their callouts can leak memory, resulting in the eventual exhaustion of available memory and subsequent failure of the server process. Affects Kea DHCP 1.4.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| ISC Kea DHCP | Kea DHCP 1.4.0 | — | 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-2018-5739. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-5739.md Affected: ISC Kea DHCP Kea DHCP 1.4.0 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for ISC Kea 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
Vendor advisories
FAQ
Is CVE-2018-5739 being exploited?
There is no confirmed exploitation: CVE-2018-5739 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.93% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-5739?
Medium: CVSS 6.5 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2018-5739?
ISC Kea DHCP Kea DHCP 1.4.0.
Is there a fix for CVE-2018-5739?
No fixed version is listed in the sources yet. Vendor workaround: + Monitoring and routinely restarting ISC Kea DHCPv4 and DHCPv6 services may be an effective mitigation for some production environments + Running a new build of Kea without any hook libraries that use the callout store is another option, though it may not be a viable option where the production environment is dependent on the other hooks that need to be omitted to avoid these symptoms. These hooks distributed by ISC do not use the callout store and are safe to use: Lease Commands, Stat Commands, Host Commands (a Kea Premium hook) and Subnet Commands (a subscriber-only hook provided to Kea support customers). + Reverting to Kea DHCP 1.3.0 may be possible for some production environments but because of differences in the database schema operators should check carefully before attempting rollback: - If using memfile storage entirely, there should not be any compatibility issues. - If using a database solution for hosts or leases, the 1.4.0 schema will be incompatible with ISC Kea 1.3.0; the database therefore must be restored from a pre-upgrade backup for this to be successful. - If you are unsure whether or not you can roll back to 1.3.0 without restoring a previous version of your database, you may send an e-mail to security-officer@isc.org describing your storage setup and we will advise.
How do I check if I'm affected by CVE-2018-5739?
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.