CVE-2025-5994
Cache poisoning via the ECS-enabled Rebirthday Attack
Reported by nlnet labs · Published July 16, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| unbound | Alpine | 1.23.1-r0, 1.22.0-r1, 1.20.0-r2 |
| unbound-devel | errata.rockylinux.org | 1.16.2-5.9.el8.x86, 1.16.2-5.9.el8.i686, 1.16.2-5.9.el8.aarch64 |
| unbound-devel | Amazon Linux | 1.17.1-1.amzn2023.0.8, 1.7.3-15.amzn2.0.10 |
| unbound | errata.rockylinux.org | 1.16.2-5.9.el8.x86, 1.16.2-5.9.el8.src, 1.16.2-5.9.el8.aarch64 |
| unbound-libs | Amazon Linux | 1.17.1-1.amzn2023.0.8, 1.7.3-15.amzn2.0.10 |
| unbound-anchor | Amazon Linux | 1.17.1-1.amzn2023.0.8 |
| unbound-libs | errata.rockylinux.org | 1.16.2-5.9.el8.x86, 1.16.2-5.9.el8.i686, 1.16.2-5.9.el8.aarch64 |
| unbound-libs-debuginfo | errata.rockylinux.org | 1.16.2-5.9.el8.aarch64 |
| unbound-utils | Amazon Linux | 1.17.1-1.amzn2023.0.8 |
| python3-unbound | errata.rockylinux.org | 1.16.2-5.9.el8.x86, 1.16.2-5.9.el8.aarch64 |
| unbound | Amazon Linux | 1.17.1-1.amzn2023.0.8, 1.7.3-15.amzn2.0.10 |
| python3-unbound | Amazon Linux | 1.17.1-1.amzn2023.0.8, 1.7.3-15.amzn2.0.10 |
5 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NLnet Labs | Unbound | 1.6.2 |
| alpine | unbound | 0, 0, 0 |
| amazon:2023 | unbound-devel | 0 |
| amazon:2023 | unbound-libs | 0 |
| amazon:2023 | unbound-anchor | 0 |
| amazon:2023 | unbound-utils | 0 |
| amazon:2 | unbound | 0 |
| amazon:2 | python3-unbound | 0 |
| amazon:2023 | python3-unbound | 0 |
| amazon:2023 | unbound | 0 |
| amazon:2 | unbound-devel | 0 |
| NLnet Labs | Unbound | 1.6.2 |
| amazon:2 | unbound-libs | 0 |
| amazon:2 | python2-unbound | 0 |
Timeline
- Jul 16, 2025 CVE Published
- Jul 17, 2025 EPSS Score (30 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- May 30, 2026 Security Advisory (18 in total, the first dated here)
- Jun 8, 2026 Distribution Patch (18 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-5994
vulnetix vdb fixes CVE-2025-5994
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-5994/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisory
- https://lists.debian.org/debian-lts-announce/2025/08/msg00019.html advisory