CVE-2025-5994Cache poisoning via the ECS-enabled Rebirthday Attack
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | unbound | Fixed | 1.22.0-2ubuntu1 | UBUNTU-CVE-2025-5994 |
| Ubuntu 24.04 | unbound | Fixed | 1.19.2-1ubuntu3.5 | UBUNTU-CVE-2025-5994 |
| Ubuntu 22.04 | unbound | Fixed | 1.13.1-1ubuntu5.11 | UBUNTU-CVE-2025-5994 |
| Ubuntu 20.04 | unbound | Fix pending | UBUNTU-CVE-2025-5994 | |
| Ubuntu 18.04 | unbound | Fix pending | UBUNTU-CVE-2025-5994 | |
| Ubuntu 16.04 | unbound | Fix pending | UBUNTU-CVE-2025-5994 | |
| Ubuntu 14.04 | unbound | Fix pending | UBUNTU-CVE-2025-5994 | |
| Debian 14 | unbound | Fixed | 1.22.0-2 | DEBIAN-CVE-2025-5994 |
| Debian 13 | unbound | Fixed | 1.22.0-2 | DEBIAN-CVE-2025-5994 |
| Debian 12 | unbound | Fixed | 1.17.1-2+deb12u3 | DEBIAN-CVE-2025-5994 |
| Red Hat Enterprise Linux 10 | python3-unbound | Fixed | 0:1.20.0-12.el10_0 | RHSA-2025:12064 |
| Red Hat Enterprise Linux 10 | unbound | Fixed | 0:1.20.0-12.el10_0 | RHSA-2025:12064 |
| Red Hat Enterprise Linux 10 | unbound-anchor | Fixed | 0:1.20.0-12.el10_0 | RHSA-2025:12064 |
| Red Hat Enterprise Linux 10 | unbound-devel | Fixed | 0:1.20.0-12.el10_0 | RHSA-2025:12064 |
| Red Hat Enterprise Linux 10 | unbound-dracut | Fixed | 0:1.20.0-12.el10_0 | RHSA-2025:12064 |
| Red Hat Enterprise Linux 10 | unbound-libs | Fixed | 0:1.20.0-12.el10_0 | RHSA-2025:12064 |
| Red Hat Enterprise Linux 9 | python3-unbound | Fixed | 0:1.16.2-19.el9_6.1 | RHSA-2025:11849 |
| Red Hat Enterprise Linux 9 | unbound | Fixed | 0:1.16.2-19.el9_6.1 | RHSA-2025:11849 |
| Red Hat Enterprise Linux 9 | unbound-devel | Fixed | 0:1.16.2-19.el9_6.1 | RHSA-2025:11849 |
| Red Hat Enterprise Linux 9 | unbound-dracut | Fixed | 0:1.16.2-19.el9_6.1 | RHSA-2025:11849 |
| Red Hat Enterprise Linux 9 | unbound-libs | Fixed | 0:1.16.2-19.el9_6.1 | RHSA-2025:11849 |
| Red Hat Enterprise Linux 8 | python3-unbound | Fixed | 0:1.16.2-5.9.el8_10 | RHSA-2025:11884 |
| Red Hat Enterprise Linux 8 | unbound | Fixed | 0:1.16.2-5.9.el8_10 | RHSA-2025:11884 |
| Red Hat Enterprise Linux 8 | unbound-devel | Fixed | 0:1.16.2-5.9.el8_10 | RHSA-2025:11884 |
| Red Hat Enterprise Linux 8 | unbound-libs | Fixed | 0:1.16.2-5.9.el8_10 | RHSA-2025:11884 |
| Red Hat Enterprise Linux 7 | unbound | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-python | Will not fix Out of support scope | ||
| AlmaLinux 10 | python3-unbound | Fixed | 1.20.0-12.el10_0 | ALSA-2025:12064 |
| AlmaLinux 10 | unbound | Fixed | 1.20.0-12.el10_0 | ALSA-2025:12064 |
| AlmaLinux 10 | unbound-anchor | Fixed | 1.20.0-12.el10_0 | ALSA-2025:12064 |
| AlmaLinux 10 | unbound-devel | Fixed | 1.20.0-12.el10_0 | ALSA-2025:12064 |
| AlmaLinux 10 | unbound-dracut | Fixed | 1.20.0-12.el10_0 | ALSA-2025:12064 |
| AlmaLinux 10 | unbound-libs | Fixed | 1.20.0-12.el10_0 | ALSA-2025:12064 |
| AlmaLinux 9 | python3-unbound | Fixed | 1.16.2-19.el9_6.1 | ALSA-2025:11849 |
| AlmaLinux 9 | unbound | Fixed | 1.16.2-19.el9_6.1 | ALSA-2025:11849 |
| AlmaLinux 9 | unbound-devel | Fixed | 1.16.2-19.el9_6.1 | ALSA-2025:11849 |
| AlmaLinux 9 | unbound-dracut | Fixed | 1.16.2-19.el9_6.1 | ALSA-2025:11849 |
| AlmaLinux 9 | unbound-libs | Fixed | 1.16.2-19.el9_6.1 | ALSA-2025:11849 |
| AlmaLinux 8 | python3-unbound | Fixed | 1.16.2-5.9.el8_10 | ALSA-2025:11884 |
| AlmaLinux 8 | unbound | Fixed | 1.16.2-5.9.el8_10 | ALSA-2025:11884 |
| AlmaLinux 8 | unbound-devel | Fixed | 1.16.2-5.9.el8_10 | ALSA-2025:11884 |
| AlmaLinux 8 | unbound-libs | Fixed | 1.16.2-5.9.el8_10 | ALSA-2025:11884 |
| Rocky Linux 9 | unbound | Fixed | 0:1.16.2-19.el9_6.1 | RLSA-2025:11849 |
| Rocky Linux 8 | unbound | Fixed | 0:1.16.2-5.9.el8 | RLSA-2025:11884 |
| Alpine Linux 3.24 | unbound | Fixed | 1.23.1-r0 | ALPINE-CVE-2025-5994 |
| Alpine Linux 3.23 | unbound | Fixed | 1.23.1-r0 | ALPINE-CVE-2025-5994 |
| Alpine Linux 3.22 | unbound | Fixed | 1.23.1-r0 | ALPINE-CVE-2025-5994 |
| Alpine Linux 3.21 | unbound | Fixed | 1.22.0-r1 | ALPINE-CVE-2025-5994 |
| Alpine Linux 3.20 | unbound | Fixed | 1.20.0-r2 | ALPINE-CVE-2025-5994 |
| Alpine Linux 3.19 | unbound | Fixed | 1.20.0-r2 | ALPINE-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.
- NLnet Labs Unbound: affected: 1.6.2 to before 1.23.0; fixed in
1.23.0
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:
- https://nlnetlabs.nl/downloads/unbound/CVE-2025-5994.txt (vendor-advisory)
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.