CVE-2026-85561 in DNSdistinfo

Summary

by MITRE • 11/27/2026

When DNS over HTTPS is enabled and configured to trust incoming X-Forwarded-For headers, in addition to the use of the proxy protocol being enabled between DNSdist and one of its backends, an outgoing TCP connection could be wrongly reused for a query received over the same incoming DNS over HTTPS connection but with a different X-Forwarded-For header, causing the backend to consider the query as coming from the same remote client than the first query received on the outgoing connection.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability described involves a critical flaw in how DNSdist handles connection reuse and source IP identification when operating behind reverse proxies using HTTP-based protocols like DNS over HTTPS. This issue arises specifically when two distinct security configurations are active simultaneously: the system is configured to trust X-Forwarded-For headers for determining client identity, and it has enabled the proxy protocol for communication with its backend servers. The core technical flaw lies in the connection pooling mechanism of the underlying TCP implementation used by DNSdist. When an outgoing TCP connection to a backend server is established, it may be kept alive and reused for subsequent queries to optimize performance. However, if this same persistent connection receives multiple incoming requests over HTTPS that carry different X-Forwarded-For headers indicating distinct source IPs, the system fails to properly isolate these logical sessions at the transport layer before reusing the socket.

This failure results in a scenario where an outgoing TCP connection established for one client is incorrectly reused to serve queries from another client with a different claimed identity. Because the proxy protocol is enabled on the backend side, DNSdist sends the source IP address identified by the X-Forwarded-For header of the current request along with the query data over this shared connection. Consequently, the backend server receives packets that appear to originate from the first client due to the persistent nature of the TCP stream and potential state confusion or lack of proper session binding in the proxy protocol implementation for reused connections. The backend then processes these queries as if they were legitimately sent by the original source IP associated with that specific TCP connection, rather than the actual requester identified by the HTTP header.

The operational impact of this vulnerability is significant from both a security and privacy perspective. It allows for potential client identity spoofing or misattribution in logging and access control systems residing on the backend DNS servers. An attacker could potentially manipulate their perceived source IP address to bypass rate limiting, firewall rules, or query restrictions that are based on IP reputation or geographic location. Furthermore, this behavior compromises user privacy by allowing one user's queries to be associated with another user's identity in server logs and analytics. In environments where strict separation of client identities is required for compliance or security auditing, such as corporate networks or public DNS resolvers handling sensitive traffic, this flaw undermines the integrity of source IP verification mechanisms.

To mitigate this risk, administrators should review their configuration to ensure that connection reuse does not compromise identity isolation. One effective mitigation strategy involves disabling TCP connection reuse for backends where strict client identification is critical, forcing a new TCP handshake and proxy protocol session for each query or logical flow. Alternatively, if the X-Forwarded-For header trust is necessary, administrators should verify that their version of DNSdist includes patches addressing this specific race condition or logic error regarding socket reuse with differing headers. It is also advisable to implement additional validation layers on backend servers, such as requiring explicit authentication tokens alongside IP-based checks, rather than relying solely on the source IP derived from proxy headers over shared connections. This aligns with general security principles found in CWE-20 Improper Input Validation and ATT&CK techniques related to privilege escalation or evasion through identity manipulation, emphasizing the need for strict state management in network proxies.

Responsible

OX

Reservation

09/04/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!