Skip to main content

PowerDNS Recursor CVE-2026-40012

| EUVDEUVD-2026-39356 MEDIUM
Use of Cache Containing Sensitive Information (CWE-524)
2026-06-25 OX GHSA-fmvv-f47m-6c7p
5.3
CVSS 3.1 · Vendor: OX
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send DNS query to ECS-enabled Recursor
  2. Delivery
    Recursor forwards query with ECS option to authoritative
  3. Exploit
    Authoritative returns zero-scoped ECS answer
  4. Execution
    Recursor improperly stores answer in packet cache with ECS metadata
  5. Persist
    Attacker queries cache via crafted lookup
  6. Impact
    Cached response reveals prior client ECS scope data

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

ECS (EDNS Client Subnet) must be explicitly enabled in the PowerDNS Recursor configuration - this is not the default deployment state, meaning the majority of Recursor installations are unaffected by default. The specific triggering condition is the receipt of a DNS response from an authoritative server that carries an ECS scope prefix length of zero (a 'zero-scoped' answer), which is a normal authoritative server behavior for globally-valid answers. No authentication is required: once ECS is enabled, any client capable of sending DNS queries to the resolver can trigger the improper caching behavior. Exploitation is further limited to environments where an attacker can both influence what gets cached (by initiating queries) and observe what is returned from the cache (by issuing follow-up queries), requiring some degree of query visibility. The CVSS vector PR:N confirms no credential or session requirement once the ECS configuration condition is met.

Impact

The CVSS 3.1 base score of 5.3 (Medium) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N accurately reflects a remotely triggerable, unauthenticated information disclosure with limited confidentiality impact and no integrity or availability consequence. The most significant risk limiter is the non-default ECS configuration: organizations that have not explicitly enabled EDNS Client Subnet are entirely unaffected. EPSS data is not present in the available intelligence, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is not in the CISA KEV catalog and no public proof-of-concept code has been identified, indicating no confirmed active exploitation at time of analysis. The practical impact is constrained: an attacker would need to craft DNS queries and observe returned cached responses to infer client subnet scoping information - this is an indirect, low-fidelity disclosure channel rather than direct exfiltration of sensitive data. For ISP and large enterprise deployments that do run ECS (where the technology provides the most operational value), the exposure surface is larger because the resolver handles queries from diverse client subnets, making the cache leakage between subnet cohorts more meaningful. Overall, this is a real but low-urgency finding: prioritize patching in ECS-enabled recursive resolvers operated at scale; non-ECS deployments can defer.

Exploit ScenarioDerived

An attacker sends a series of DNS queries through an ECS-enabled PowerDNS Recursor - potentially from multiple source IP addresses representing different client subnets - and crafts queries for domains whose authoritative servers return zero-scoped ECS answers. Because the Recursor improperly stores these answers in the packet cache with ECS scope metadata, a subsequent query from a different client subnet may receive a cached response that exposes the ECS scope from a prior query, leaking partial subnet information about previous querying clients. No public proof-of-concept code has been identified, and the attack requires the ability to send DNS queries to the affected resolver and observe the returned responses.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 25, 2026

Improper packet cache handling in PowerDNS Recursor causes ECS zero-scoped DNS answers to be stored in the cache when they should be discarded or handled as global entries, creating an information disclosure pathway. All Recursor versions (cpe:2.3:a:powerdns:recursor:*:*:*:*:*:*:*:*) are affected, but only deployments with EDNS Client Subnet (ECS) explicitly enabled are exposed. The CVSS score of 5.3 with a network vector and no required privileges reflects that any DNS client can trigger the improper caching behavior, though real-world impact is bounded by the non-default ECS configuration requirement. No public exploit code has been identified and the vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Consult the PowerDNS security advisory at https://docs.powerdns.com/recursor/security-advisories/powerdns-advisory-powerdns-2026-08.html for the specific patched Recursor release version - a vendor advisory exists but the input data does not supply an exact fix version, so the precise upgrade target cannot be independently confirmed here and should be taken directly from that advisory. As an immediate compensating control, operators who do not require ECS functionality should disable it in the Recursor configuration (set use-incoming-edns-subnet=no and do not forward ECS to upstreams); this fully eliminates the vulnerable code path with no functional impact for non-ECS use cases. For deployments that require ECS for geo-aware resolution, upgrading to the patched release is the only complete remediation - disabling ECS in those environments would degrade the quality of answers returned to end users and may violate SLAs with CDN or authoritative providers. No additional network-layer compensating controls (firewall rules, port blocking) are effective since the flaw is in internal cache logic triggered by normal DNS query processing.

Affected VersionsENISA

Recursor 5.2.0 <5.2.11
Recursor 5.3.0 <5.3.8
Recursor 5.4.0 <5.4.3

Affected Packages

euvd recursor fix: 5.2.11, 5.3.8, 5.4.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

EDNS Client Subnet (ECS, RFC 7871) is an extension to the DNS protocol that allows recursive resolvers to include a truncated client IP prefix in upstream queries, enabling geo-aware authoritative servers to return client-optimal answers. When an authoritative server responds with an ECS scope prefix length of zero, it signals that the answer is globally valid and not dependent on any specific client subnet - these are called 'zero-scoped' answers. In a correct implementation, zero-scoped ECS answers should be stored in the cache as generic, subnet-independent entries (or not stored in the ECS-keyed portion of the cache at all). The bug in PowerDNS Recursor causes these zero-scoped answers to be improperly retained in the packet cache with ECS metadata attached, meaning subsequent cache lookups may surface responses that carry residual client subnet scope information from prior queries. The CWE classification was not assigned by the reporter, but the behavior is consistent with improper cache key management - analogous to CWE-524 (Use of Cache Containing Sensitive Information) or CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The affected component spans all versions of the Recursor product line per the wildcard CPE string.

Know when Powerdns gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (OX) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

Network-reachable DNS service, no credentials needed once ECS is enabled, only partial client subnet data disclosed with no integrity or availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (OX).

CVSS VectorVendor: OX

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Jun 25, 2026 - 15:17 EUVD

DescriptionCVE.org

ECS zero scoped answers are stored in the packet cache while they should not. This impacts only configurations that have ECS enabled;

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
widely used recursive resolver in ISP and enterprise DNS infrastructure
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2016-5427 HIGH
7.5 Sep 21

PowerDNS (aka pdns) Authoritative Server before 3.4.10 does not properly handle a . Rated high severity (CVSS 7.5), this

CVE-2016-5426 HIGH
7.5 Sep 21

PowerDNS (aka pdns) Authoritative Server before 3.4.10 allows remote attackers to cause a denial of service (backend CPU

CVE-2019-3871 HIGH POC
8.8 Mar 21

A vulnerability was found in PowerDNS Authoritative Server before 4.0.7 and before 4.1.7. Rated high severity (CVSS 8.8)

CVE-2021-36754 HIGH POC
7.5 Jul 30

PowerDNS Authoritative Server 4.5.0 before 4.5.1 allows anybody to crash the process by sending a specific query (QTYPE

CVE-2012-1193 MEDIUM POC
6.4 Feb 17

The resolver in PowerDNS Recursor (aka pdns_recursor) 3.3 overwrites cached server names and TTL values in NS records du

CVE-2026-33608 CRITICAL
9.8 Apr 22

Remote attackers can corrupt PowerDNS Authoritative Server configuration via specially crafted DNS NOTIFY requests, caus

CVE-2020-24698 CRITICAL
9.8 Oct 02

An issue was discovered in PowerDNS Authoritative through 4.3.0 when --enable-experimental-gss-tsig is used. Rated criti

CVE-2019-3807 CRITICAL
9.8 Jan 29

An issue has been found in PowerDNS Recursor versions 4.1.x before 4.1.9 where records in the answer section of response

CVE-2026-33598 CRITICAL
9.1 Apr 22

Out-of-bounds memory read in dnsdist allows remote attackers to trigger information disclosure or denial of service when

CVE-2017-7557 HIGH
8.8 Aug 22

dnsdist version 1.1.0 is vulnerable to a flaw in authentication mechanism for REST API potentially allowing CSRF attack.

CVE-2020-10030 HIGH
8.8 May 19

An issue has been found in PowerDNS Recursor 4.1.0 up to and including 4.3.0. Rated high severity (CVSS 8.8), this vulne

CVE-2026-42000 HIGH
8.6 May 21

Denial of service in PowerDNS Authoritative DNS server (versions 4.9.0-4.9.14 and 5.0.0-5.0.4) arises from insufficient

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy