Vulnerability · Published Oct 3, 2024 · Assigned by NLnet Labs

CVE-2024-8508Unbounded name compression could lead to Denial of Service

Medium 5.3

In plain English

A medium-severity security flaw in Unbound from NLnet Labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.8%top 43.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

NLnet Labs Unbound up to and including version 1.21.0 contains a vulnerability when handling replies with very large RRsets that it needs to perform name compression for. Malicious upstreams responses with very large RRsets can cause Unbound to spend a considerable time applying name compression to downstream replies. This can lead to degraded performance and eventually denial of service in well orchestrated attacks. The vulnerability can be exploited by a malicious actor querying Unbound for the specially crafted contents of a malicious zone with very large RRsets. Before Unbound replies to the query it will try to apply name compression which was an unbounded operation that could lock the CPU until the whole packet was complete. Unbound version 1.21.1 introduces a hard limit on the number of name compression calculations it is willing to do per packet. Packets that need more compression will result in semi-compressed packets or truncated packets, even on TCP for huge messages, to avoid locking the CPU for long. This change should not affect normal DNS traffic.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10python3-unbound1.20.0-10.el10_0ALSA-2025:8047
AlmaLinux:8python3-unbound1.16.2-5.8.el8_10ALSA-2025:0837
AlmaLinux:9python3-unbound1.16.2-8.el9_5.1ALSA-2024:11232
AlmaLinux:10unbound1.20.0-10.el10_0ALSA-2025:8047
AlmaLinux:8unbound1.16.2-5.8.el8_10ALSA-2025:0837
AlmaLinux:9unbound1.16.2-8.el9_5.1ALSA-2024:11232
AlmaLinux:10unbound-anchor1.20.0-10.el10_0ALSA-2025:8047
AlmaLinux:10unbound-devel1.20.0-10.el10_0ALSA-2025:8047
AlmaLinux:8unbound-devel1.16.2-5.8.el8_10ALSA-2025:0837
AlmaLinux:9unbound-devel1.16.2-8.el9_5.1ALSA-2024:11232
AlmaLinux:10unbound-dracut1.20.0-10.el10_0ALSA-2025:8047
AlmaLinux:10unbound-libs1.20.0-10.el10_0ALSA-2025:8047
AlmaLinux:8unbound-libs1.16.2-5.8.el8_10ALSA-2025:0837
AlmaLinux:9unbound-libs1.16.2-8.el9_5.1ALSA-2024:11232
Alpine:v3.20unbound1.20.0-r1ALPINE-CVE-2024-8508
Alpine:v3.21unbound1.21.1-r0ALPINE-CVE-2024-8508
Alpine:v3.22unbound1.21.1-r0ALPINE-CVE-2024-8508
Alpine:v3.23unbound1.21.1-r0ALPINE-CVE-2024-8508
Alpine:v3.24unbound1.21.1-r0ALPINE-CVE-2024-8508
Debian:12unbound1.17.1-2+deb12u3DEBIAN-CVE-2024-8508
Debian:12unbound1.17.1-2+deb12u3DSA-5987-1
Debian:13unbound1.21.1-1DEBIAN-CVE-2024-8508
Debian:14unbound1.21.1-1DEBIAN-CVE-2024-8508
Rocky Linux:10unbound0:1.20.0-10.el10_0RLSA-2025:8047
Rocky Linux:8unbound0:1.16.2-5.8.el8_10RLSA-2025:0837
Rocky Linux:9unbound0:1.16.2-18.el9_6RLSA-2025:8197
Rocky Linux:9unbound0:1.16.2-8.el9_5.1RLSA-2024:11232
Ubuntu:22.04:LTSunbound1.13.1-1ubuntu5.8USN-7080-1
Ubuntu:22.04:LTSunbound1.13.1-1ubuntu5.8UBUNTU-CVE-2024-8508
Ubuntu:24.04:LTSunbound1.19.2-1ubuntu3.3USN-7080-1
Ubuntu:24.04:LTSunbound1.19.2-1ubuntu3.3UBUNTU-CVE-2024-8508

Affected products (as reported)

VendorProductVersions
NLnet Labs Unbound 0 – through 1.21.0

Weakness: CWE-606 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References