CVEfocus › CVE database › CVE-2024-1931

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

CVSS 7.5 HighEPSS 3.2% (higher than 89% of CVEs)Published 2024-03-07Updated 2025-02-13Assigner: NLnet Labs

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.

CWE-835

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
5Fix pending
8Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04unboundFixed1.19.2-1ubuntu1UBUNTU-CVE-2024-1931
Ubuntu 22.04unboundNot affected
vulnerable_code_not_present
Debian 14unboundFixed1.19.2-1DEBIAN-CVE-2024-1931
Debian 13unboundFixed1.19.2-1DEBIAN-CVE-2024-1931
Red Hat Enterprise Linux 9python3-unboundFix pending
Fix deferred
Red Hat Enterprise Linux 9unboundFix pending
Fix deferred
Red Hat Enterprise Linux 9unbound-develFix pending
Fix deferred
Red Hat Enterprise Linux 9unbound-dracutFix pending
Fix deferred
Red Hat Enterprise Linux 9unbound-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8python3-unboundNot affected
Red Hat Enterprise Linux 8unboundNot affected
Red Hat Enterprise Linux 8unbound-develNot affected
Red Hat Enterprise Linux 8unbound-libsNot affected
Red Hat Enterprise Linux 7unboundWill not fix
Out of support scope
Red Hat Enterprise Linux 7unbound-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7unbound-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7unbound-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6unboundWill not fix
Out of support scope
Red Hat Enterprise Linux 6unbound-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6unbound-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6unbound-pythonWill not fix
Out of support scope
Alpine Linux 3.24unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.23unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.22unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.21unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.20unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.19unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.18unboundFixed1.19.2-r0ALPINE-CVE-2024-1931
Alpine Linux 3.17unboundFixed1.19.2-r0ALPINE-CVE-2024-1931

What the vendor says

As published in the CVE record by NLnet Labs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: This issue is fixed in 1.19.2 and all later versions. For the vulnerable versions 1.18.0 up to and including 1.19.1, the option 'ede: no' (default configuration) is also a solution as it does not exercise the vulnerable code path.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.