CVEfocus › CVE database › CVE-2025-5994

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

CVSS 8.7 HighEPSS 0.3% (higher than 18% of CVEs)Published 2025-07-16Updated 2025-11-03Assigner: NLnet Labs

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.

CWE-349

What to do

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

Ubuntu 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

44Fixed
4Fix pending
8Will not fix

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 25.10unboundFixed1.22.0-2ubuntu1UBUNTU-CVE-2025-5994
Ubuntu 24.04unboundFixed1.19.2-1ubuntu3.5UBUNTU-CVE-2025-5994
Ubuntu 22.04unboundFixed1.13.1-1ubuntu5.11UBUNTU-CVE-2025-5994
Ubuntu 20.04unboundFix pendingUBUNTU-CVE-2025-5994
Ubuntu 18.04unboundFix pendingUBUNTU-CVE-2025-5994
Ubuntu 16.04unboundFix pendingUBUNTU-CVE-2025-5994
Ubuntu 14.04unboundFix pendingUBUNTU-CVE-2025-5994
Debian 14unboundFixed1.22.0-2DEBIAN-CVE-2025-5994
Debian 13unboundFixed1.22.0-2DEBIAN-CVE-2025-5994
Debian 12unboundFixed1.17.1-2+deb12u3DEBIAN-CVE-2025-5994
Red Hat Enterprise Linux 10python3-unboundFixed0:1.20.0-12.el10_0RHSA-2025:12064
Red Hat Enterprise Linux 10unboundFixed0:1.20.0-12.el10_0RHSA-2025:12064
Red Hat Enterprise Linux 10unbound-anchorFixed0:1.20.0-12.el10_0RHSA-2025:12064
Red Hat Enterprise Linux 10unbound-develFixed0:1.20.0-12.el10_0RHSA-2025:12064
Red Hat Enterprise Linux 10unbound-dracutFixed0:1.20.0-12.el10_0RHSA-2025:12064
Red Hat Enterprise Linux 10unbound-libsFixed0:1.20.0-12.el10_0RHSA-2025:12064
Red Hat Enterprise Linux 9python3-unboundFixed0:1.16.2-19.el9_6.1RHSA-2025:11849
Red Hat Enterprise Linux 9unboundFixed0:1.16.2-19.el9_6.1RHSA-2025:11849
Red Hat Enterprise Linux 9unbound-develFixed0:1.16.2-19.el9_6.1RHSA-2025:11849
Red Hat Enterprise Linux 9unbound-dracutFixed0:1.16.2-19.el9_6.1RHSA-2025:11849
Red Hat Enterprise Linux 9unbound-libsFixed0:1.16.2-19.el9_6.1RHSA-2025:11849
Red Hat Enterprise Linux 8python3-unboundFixed0:1.16.2-5.9.el8_10RHSA-2025:11884
Red Hat Enterprise Linux 8unboundFixed0:1.16.2-5.9.el8_10RHSA-2025:11884
Red Hat Enterprise Linux 8unbound-develFixed0:1.16.2-5.9.el8_10RHSA-2025:11884
Red Hat Enterprise Linux 8unbound-libsFixed0:1.16.2-5.9.el8_10RHSA-2025:11884
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
AlmaLinux 10python3-unboundFixed1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux 10unboundFixed1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux 10unbound-anchorFixed1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux 10unbound-develFixed1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux 10unbound-dracutFixed1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux 10unbound-libsFixed1.20.0-12.el10_0ALSA-2025:12064
AlmaLinux 9python3-unboundFixed1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux 9unboundFixed1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux 9unbound-develFixed1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux 9unbound-dracutFixed1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux 9unbound-libsFixed1.16.2-19.el9_6.1ALSA-2025:11849
AlmaLinux 8python3-unboundFixed1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux 8unboundFixed1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux 8unbound-develFixed1.16.2-5.9.el8_10ALSA-2025:11884
AlmaLinux 8unbound-libsFixed1.16.2-5.9.el8_10ALSA-2025:11884
Rocky Linux 9unboundFixed0:1.16.2-19.el9_6.1RLSA-2025:11849
Rocky Linux 8unboundFixed0:1.16.2-5.9.el8RLSA-2025:11884
Alpine Linux 3.24unboundFixed1.23.1-r0ALPINE-CVE-2025-5994
Alpine Linux 3.23unboundFixed1.23.1-r0ALPINE-CVE-2025-5994
Alpine Linux 3.22unboundFixed1.23.1-r0ALPINE-CVE-2025-5994
Alpine Linux 3.21unboundFixed1.22.0-r1ALPINE-CVE-2025-5994
Alpine Linux 3.20unboundFixed1.20.0-r2ALPINE-CVE-2025-5994
Alpine Linux 3.19unboundFixed1.20.0-r2ALPINE-CVE-2025-5994

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.23.1 and all later versions. Not using EDNS Client Subnet (ECS) is also a mitigation for affected versions.

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.