Rebirthday Attack Vulnerability in Unbound DNS Resolver

unbound Updated 02 Oct 2025

Summary

16/07/2025
N/A
Yes i
Unrated
Not published

CVE-2025-5994: A multi-vendor cache poisoning vulnerability named 'Rebirthday Attack' has been discovered in caching resolvers that support EDNS Client Subnet (ECS). Affects unbound versions < 1.23.1-r0. Fixed in 1.23.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Unbound is a validating, recursive, and caching DNS resolver that is widely used for its performance and security features. It supports EDNS Client Subnet (ECS), which allows DNS queries to include client subnet information to improve the accuracy of responses. However, when configured improperly, it becomes vulnerable to cache poisoning attacks, specifically the Rebirthday Attack, which exploits the way ECS information is handled.

Vulnerability Detail

A multi-vendor cache poisoning vulnerability, known as the 'Rebirthday Attack', has been identified in caching resolvers that support EDNS Client Subnet (ECS). Unbound is susceptible when compiled with ECS support and configured to send ECS information with queries to upstream name servers. This vulnerability allows attackers to exploit the birthday paradox to match DNS transaction IDs, enabling them to cache malicious replies that can compromise the integrity of DNS responses.

How To Fix

Minimum fixed version

1.23.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade unbound

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider disabling ECS support in your Unbound configuration by removing or commenting out any lines that include 'send-client-subnet', 'client-subnet-zone', or 'client-subnet-always-forward'. This can be done by editing the Unbound configuration file, typically located at '/etc/unbound/unbound.conf'.

Conclusion

The Rebirthday Attack vulnerability in Unbound poses significant risks to DNS integrity when ECS is improperly configured. Users are advised to update their Unbound installations and review their configurations to mitigate potential attacks.

See every vulnerability recorded for unbound →

Share this vulnerability

FAQ

The Rebirthday Attack is a cache poisoning technique that exploits the birthday paradox to match DNS transaction IDs, allowing attackers to inject malicious responses into the DNS cache.

Unbound is vulnerable when it is compiled with ECS support and configured to send ECS information, making it susceptible to cache poisoning attacks.

If exploited, this vulnerability can lead to the caching of malicious DNS responses, potentially redirecting users to harmful sites or intercepting sensitive information.

Yes, a patched version of Unbound is available. Users should update to the latest version to mitigate the risk associated with this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground.

Related vulnerabilities

Recent vulnerabilities recorded for unbound.

How To Fix

Minimum fixed version

1.23.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade unbound

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback