Vulnerability · Published Jul 16, 2025 · Assigned by NLnet Labs

CVE-2025-5994Cache poisoning via the ECS-enabled Rebirthday Attack

High 8.7

In plain English

A high-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.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.2%top 87.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A multi-vendor cache poisoning vulnerability named 'Rebirthday Attack' has been discovered in caching resolvers that support EDNS Client Subnet (ECS). Unbound is also vulnerable when compiled with ECS support, i.e., '--enable-subnet', AND configured to send ECS information along with queries to upstream name servers, i.e., at least one of the 'send-client-subnet', 'client-subnet-zone' or 'client-subnet-always-forward' options is used. Resolvers supporting ECS need to segregate outgoing queries to accommodate for different outgoing ECS information. This re-opens up resolvers to a birthday paradox attack (Rebirthday Attack) that tries to match the DNS transaction ID in order to cache non-ECS poisonous replies.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10python3-unbound1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux:8python3-unbound1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux:9python3-unbound1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux:10unbound1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux:8unbound1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux:9unbound1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux:10unbound-anchor1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux:10unbound-devel1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux:8unbound-devel1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux:9unbound-devel1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux:10unbound-dracut1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux:9unbound-dracut1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux:10unbound-libs1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux:8unbound-libs1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux:9unbound-libs1.16.2-19.el9_6.1ALSA-2025:11849
Alpine:v3.20unbound1.20.0-r2ALPINE-CVE-2025-5994
Alpine:v3.21unbound1.22.0-r1ALPINE-CVE-2025-5994
Alpine:v3.22unbound1.23.1-r0ALPINE-CVE-2025-5994
Alpine:v3.23unbound1.23.1-r0ALPINE-CVE-2025-5994
Alpine:v3.24unbound1.23.1-r0ALPINE-CVE-2025-5994
Debian:12unbound1.17.1-2+deb12u3DEBIAN-CVE-2025-5994
Debian:12unbound1.17.1-2+deb12u3DSA-5987-1
Debian:13unbound1.22.0-2DEBIAN-CVE-2025-5994
Debian:14unbound1.22.0-2DEBIAN-CVE-2025-5994
Rocky Linux:8unbound0:1.16.2-5.9.el8RLSA-2025:11884
Rocky Linux:9unbound0:1.16.2-19.el9_6.1RLSA-2025:11849
Ubuntu:22.04:LTSunbound1.13.1-1ubuntu5.11USN-7666-1
Ubuntu:22.04:LTSunbound1.13.1-1ubuntu5.11UBUNTU-CVE-2025-5994
Ubuntu:24.04:LTSunbound1.19.2-1ubuntu3.5USN-7666-1
Ubuntu:24.04:LTSunbound1.19.2-1ubuntu3.5UBUNTU-CVE-2025-5994
Ubuntu:25.10unbound1.22.0-2ubuntu1UBUNTU-CVE-2025-5994

Affected products (as reported)

VendorProductVersions
NLnet Labs Unbound 1.6.2 – before 1.23.0

Weakness: CWE-349 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/R:U/V:C

References