Quick answers
- Is CVE-2026-40012 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-40012 being exploited in the wild.
- How severe is CVE-2026-40012?
- Medium severity, with a CVSS score of 5.3, published 25 June 2026.
- Which products and versions are affected?
- Powerdns Recursor 5.2.0 to 5.2.10, 5.3.0 to 5.3.7, 5.4.0 to 5.4.2.
- Is there a fix for CVE-2026-40012?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-40012 attacked?
- It is attacked over the network, in a hosted service.
- Am I affected by CVE-2026-40012?
- Check whether you run Powerdns Recursor at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A vulnerability exists in PowerDNS Recursor's handling of EDNS Client Subnet (ECS) data within its packet cache. Specifically, the recursor incorrectly caches answers with a zero scope (indicating the answer is global and not subnet-specific) when it should not. This issue is located in the 'EDNS Client Subnet processing' module within pdns_recursor.cc. An unauthenticated remote attacker can exploit this behavior in configurations where ECS is enabled to potentially cause the recursor to serve incorrect or sensitive cached data to other clients. The issue is addressed in versions 5.2.11, 5.3.8, and 5.4.3.
Affected products
- PowerDNS Recursor 5.2.0 to 5.2.10, 5.3.0 to 5.3.7, 5.4.0 to 5.4.2
Timeline
- 2026-06-25: disclosed
- 2026-06-25: advisory