CVE-2026-54478
unbound: Unbound: DNS Cookie security bypass via incorrect server cookie calculation
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 22, 2026
Updated · September 1, 2026
Description
A flaw was found in Unbound. When Unbound is configured to listen on a proxy-protocol port with DNS cookies enabled, it incorrectly computes the server cookie using the proxy's network address instead of the actual client's address. This vulnerability allows an off-path attacker to harvest a valid server cookie and replay it from a spoofed source, effectively bypassing DNS Cookie security checks intended to prevent DNS spoofing.
Statement
This Low impact flaw in Unbound occurs when the DNS resolver is configured to use both proxy-protocol-port and answer-cookie: yes. The server cookie is incorrectly derived from the proxy's address, enabling an off-path attacker to bypass DNS Cookie security by replaying a harvested cookie. This vulnerability requires a specific, non-default configuration and has high attack complexity, limiting its impact.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, avoid enabling answer-cookie: yes when Unbound is configured to listen on a proxy-protocol-port. If the proxy-protocol-port is essential, consider disabling DNS cookies. If both features are required, ensure the proxy infrastructure is secured and trusted. A restart of the Unbound service is required for configuration changes to take effect.
CVSS / CWE
CVSS 3.1 · 3.7CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE-303 · Incorrect Implementation of Authentication Algorithm