CVE-2026-85562 in DNSdistinfo

Summary

by MITRE • 11/27/2026

When DNS over HTTPS is enabled and configured to trust incoming X-Forwarded-For headers, and the reverse proxy placed in front of DNSdist does not replace existing X-Forwarded-For headers but merely append a new header to the query, the first header was used by DNSdist instead of the last one, making it possible for a client to spoof its own IP address.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability described involves a critical misconfiguration in the handling of HTTP forwarding headers within a DNS over HTTPS infrastructure that utilizes DNSdist as an upstream resolver or proxy server. This issue specifically arises when DNSoverHTTPS is enabled and configured to trust incoming X-ForwardedFor headers, which are standard mechanisms used by reverse proxies to convey the original client IP address through intermediate hops. In this scenario, the reverse proxy placed in front of DNSdist fails to replace existing X-ForwardedFor headers with a new one containing its own appended value. Instead, it appends a new header entry to the query while leaving any pre-existing headers intact. This behavior creates an ambiguity in how DNSdist interprets the client identity because HTTP specifications and many proxy implementations dictate that when multiple instances of a forwarding header exist, the last one should be considered authoritative as it represents the most recent hop. However, due to the specific implementation logic within this version of DNSdist, the system incorrectly prioritizes the first X-ForwardedFor header in the list rather than the last one.

This technical flaw results in a significant security weakness known as IP address spoofing or source address forgery. Because DNSdist relies on the first header for determining the client's identity, an attacker can manipulate this field by injecting their own desired IP address into the initial position of the X-ForwardedFor chain before it reaches the proxy and subsequently DNSdist. Since the system trusts these headers under the current configuration, it will accept the spoofed value as legitimate. This allows malicious actors to bypass access control lists that rely on client IP addresses for authorization or rate limiting purposes. For instance, if a network administrator has configured DNSdist to allow queries only from specific trusted subnets by checking the X-ForwardedFor header, an attacker can simply prepend their own untrusted IP address to the header list, causing DNSdist to believe the request originates from within the allowed range while actually originating from outside.

The operational impact of this vulnerability is severe in environments where access control policies are enforced based on client identity derived from forwarding headers. It undermines the integrity of security boundaries established by firewalls and intrusion prevention systems that sit upstream of the reverse proxy. Attackers can exploit this to perform unauthorized DNS queries, potentially leading to data exfiltration via DNS tunneling if such restrictions were in place. Furthermore, it compromises logging accuracy and forensic analysis capabilities since logs will reflect spoofed source addresses rather than true client origins. This makes incident response more difficult as investigators cannot reliably trace the origin of malicious traffic based on these headers. The flaw essentially nullifies any security controls that depend on accurate identification of the end-user's IP address through this specific forwarding mechanism.

To mitigate this vulnerability, administrators must ensure that their reverse proxy software is configured to replace rather than append X-ForwardedFor headers when they are present in incoming requests. Most modern reverse proxies such as Nginx or Apache have configuration directives specifically designed to handle this correctly by overwriting the header with a single value containing the full chain of IPs from client to server, ensuring that DNSdist receives only one definitive instance of the header where it can reliably parse the last entry as the true source. Additionally, if modifying the reverse proxy is not immediately feasible, administrators should consider disabling the trust in X-ForwardedFor headers within DNSdist configuration and instead rely on other methods for identifying clients, such as TLS client certificates or direct connection inspection if possible. Updating to a patched version of DNSdist that corrects this parsing logic to adhere strictly to standard practices regarding header precedence is also essential. This aligns with common industry standards like CWE-20 Improper Input Validation and ATT&CK technique T1078 Valid Accounts, as it involves bypassing authentication or authorization controls through input manipulation.

Responsible

OX

Reservation

09/04/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!