# CVE-2024-1931: Denial of service when trimming EDE text on positive replies

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.22% (percentile 89, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2024-03-07T09:17:13.072Z
- **Modified:** 2026-06-17T07:05:26.403Z

## Who should check

- Anyone running NLnet Labs Unbound \>= 1.18.0, \< 1.19.2

## Description

NLnet Labs Unbound version 1.18.0 up to and including version 1.19.1 contain a vulnerability that can cause denial of service by a certain code path that can lead to an infinite loop. Unbound 1.18.0 introduced a feature that removes EDE records from responses with size higher than the client's advertised buffer size. Before removing all the EDE records however, it would try to see if trimming the extra text fields on those records would result in an acceptable size while still retaining the EDE codes. Due to an unchecked condition, the code that trims the text of the EDE records could loop indefinitely. This happens when Unbound would reply with attached EDE information on a positive reply and the client's buffer size is smaller than the needed space to include EDE records. The vulnerability can only be triggered when the 'ede: yes' option is used; non default configuration. From version 1.19.2 on, the code is fixed to avoid looping indefinitely.

## Affected and fixed versions

- NLnet Labs Unbound: \>= 1.18.0, \< 1.19.2 (cvelist)

## Mitigation

- Upgrade Unbound to 1.19.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-1931.md
Affected: NLnet Labs Unbound >= 1.18.0, < 1.19.2
Fixed in: NLnet Labs Unbound 1.19.2

Steps:
1. Search this machine and project for NLnet Labs Unbound: 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-2024-1931 being exploited?

There is no confirmed exploitation: CVE-2024-1931 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-1931?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-1931?

NLnet Labs Unbound \>= 1.18.0, \< 1.19.2.

### Is there a fix for CVE-2024-1931?

Yes. Fixed in NLnet Labs Unbound 1.19.2. Upgrade Unbound to 1.19.2 or later.

### How do I check if I'm affected by CVE-2024-1931?

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://www.nlnetlabs.nl/downloads/unbound/CVE-2024-1931.txt>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4VCBRQ7KMSIGBQ6A4SBL5PF326DIJIIV/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B2JUIFPA7H75Q2W3VXW2TUNHK6NVGOX4/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBR4H7RCVMJ6H76S4LLRSY5EBFTYWGXK/>
- other: <https://lists.freebsd.org/archives/freebsd-security/2024-July/000283.html>
- other: <https://security.netapp.com/advisory/ntap-20240705-0006/>

## 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-2024-1931>

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