CVE-2026-54478

DNS Cookie bypass when combined with proxy-protocol use

Published Jul 22, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
Description
In NLnet Labs Unbound 1.18.0 up to and including 1.25.1, when Unbound listens on a 'proxy-protocol-port' interface with 'answer-cookie: yes', the RFC 9018 server-cookie SipHash is computed over the proxy's wire address instead of the PROXYv2-declared client. One server cookie obtained through a given proxy node therefore validates for every PROXYv2-declared source behind that node. On a UDP+proxy-protocol front, an off-path attacker can harvest one cookie with a single legitimate query, then replay it under any spoofed source and pass DNS Cookie checks that were deployed to defeat this in the first place.

Analysis

AI-generated

Technical impact

The flaw arises when Unbound listens on a proxy‑protocol‑port and has the answer‑cookie option enabled. It builds the RFC 9018 server‑cookie SipHash key using the proxy’s wire address instead of the actual PROXYv2‑declared client address. Consequently, a cookie obtained via a legitimate query on a given proxy node validates for any proxied source behind that node. An off‑path attacker can therefore capture a single cookie, replay it from any spoofed source, and bypass DNS Cookie checks that were intended to defend against spoofed DNS responses. The vulnerability represents an authorization bypass (CWE‑290) that enables forged DNS responses to be accepted.

Affected Systems

The issue affects NLnet Labs Unbound versions 1.18.0 through 1.25.1 that are configured to listen on a proxy‑protocol‑port with answer‑cookie set to yes. All other version numbers or configurations are unaffected.

Risk and Exploitability

The exploit requires the attacker to perform a legitimate DNS query to harvest a cookie, after which the cookie may be replayed from any spoofed source behind the same proxy node. The attack is off‑path and does not require direct connectivity to the actual client. Because the vulnerability affects only systems with proxy‑protocol enabled and cookie checks, the scope is limited to environments that use proxy‑protocol with DNS cookie validation. The CVSS score of 3.7 indicates moderate severity, but the exploitability is enabled by widely deployed proxy‑protocol setups. The EPSS score is less than 1% and the vulnerability is not listed in the CISA KEV catalog, suggesting that it is not yet targeted as a known exploit. Nevertheless, patching is recommended to remove the possibility of cookie forgery.

Remediation

Vendor Solution

This issue is fixed starting with version 1.25.2


OpenCVE Recommended Actions

  • Upgrade Unbound to version 1.25.2 or later, which contains a fix for the cookie computation bug.
  • If an immediate upgrade is not possible, disable answer‑cookie or remove cookie checks on interfaces that use proxy‑protocol, so that the server no longer requires cookies.
  • Restrict access to the proxy‑protocol port through firewall rules or use network segmentation so that only trusted clients can use it, mitigating the risk until the patch is applied.

Generated by OpenCVE AI on August 2, 2026 at 18:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6507-1 unbound security update
History
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
Weaknesses CWE-303
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
First Time appeared Nlnetlabs
Nlnetlabs unbound
Vendors & Products Nlnetlabs
Nlnetlabs unbound
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description In NLnet Labs Unbound 1.18.0 up to and including 1.25.1, when Unbound listens on a 'proxy-protocol-port' interface with 'answer-cookie: yes', the RFC 9018 server-cookie SipHash is computed over the proxy's wire address instead of the PROXYv2-declared client. One server cookie obtained through a given proxy node therefore validates for every PROXYv2-declared source behind that node. On a UDP+proxy-protocol front, an off-path attacker can harvest one cookie with a single legitimate query, then replay it under any spoofed source and pass DNS Cookie checks that were deployed to defeat this in the first place.
Title DNS Cookie bypass when combined with proxy-protocol use
Weaknesses CWE-290
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing

  • CWE-303

    Incorrect Implementation of Authentication Algorithm

Sources

Status
PUBLISHED
Assigner
NLnet Labs
Published
Updated
Jul 22, 2026, 2:14 PM
Reserved
Jun 22, 2026, 12:27 PM
Status
Analyzed
Published
Jul 22, 2026, 2:17 PM
Modified
Oct 24, 2026, 1:10 PM
Severity
Low
Public date
Jul 22, 2026, 1:09 PM