CVE-2026-42005 Overview
CVE-2026-42005 is a denial of service vulnerability affecting the PowerDNS internal web server. An authenticated attacker can send a crafted web request that triggers unlimited memory allocation, exhausting available memory and causing service disruption. The internal web server is disabled by default, which limits the exposure surface to deployments that have explicitly enabled the management API or web interface.
Critical Impact
A low-privileged attacker with network access to an enabled PowerDNS internal web server can exhaust system memory and disrupt DNS service availability.
Affected Products
- PowerDNS Authoritative Server (versions referenced in PowerDNS Security Advisory 2026-07)
- Deployments with the internal web server explicitly enabled
- Configurations exposing the management API to untrusted networks
Discovery Timeline
- 2026-06-25 - CVE-2026-42005 published to NVD
- 2026-06-25 - Last updated in NVD database
Technical Details for CVE-2026-42005
Vulnerability Analysis
The vulnerability resides in the request handling logic of the PowerDNS internal web server. When the server receives a specially crafted HTTP request, it allocates memory without enforcing an upper bound. The allocation continues until system resources are depleted, at which point the process is terminated by the operating system or becomes unresponsive.
This is a resource exhaustion flaw [CWE-400] manifesting as memory exhaustion. The attacker does not need to compromise confidentiality or integrity. The impact is limited to availability of the DNS service, which is itself a critical infrastructure component for any environment relying on PowerDNS for authoritative name resolution.
The attack vector is network-based and requires low privileges, meaning the attacker must hold valid credentials or an API key to authenticate against the web server before triggering the condition. No user interaction is required.
Root Cause
The root cause is the absence of a maximum size limit on memory buffers allocated during web request parsing. The internal web server processes incoming request data without bounding the cumulative allocation per request, allowing a single connection to consume arbitrary amounts of heap memory.
Attack Vector
An authenticated attacker sends an HTTP request to the PowerDNS internal web server endpoint. The request is structured to force the server into iterative or unbounded memory allocation during parsing or response construction. The malloc operations continue until the host runs out of available memory, triggering an out-of-memory condition that crashes or hangs the PowerDNS service.
The vulnerability requires the internal web server to be enabled, which is not the default configuration. Deployments using the API for automation, dynamic record management, or monitoring are the primary targets. Refer to the PowerDNS Security Advisory for vendor-supplied technical details.
Detection Methods for CVE-2026-42005
Indicators of Compromise
- Sudden spikes in resident memory usage by the pdns_server process
- Out-of-memory kills logged in /var/log/syslog or dmesg referencing PowerDNS
- Authenticated HTTP requests to the PowerDNS web server endpoint with abnormally large or repeated payloads
- DNS service outages correlated with API activity from a single source IP
Detection Strategies
- Monitor process-level memory metrics for pdns_server and alert on rapid growth beyond a configured threshold
- Inspect web server access logs for repeated requests from the same authenticated client preceding a crash event
- Correlate DNS service restarts with HTTP request patterns to the internal web server port
Monitoring Recommendations
- Enable detailed logging on the PowerDNS internal web server and forward logs to a centralized SIEM
- Track API authentication events and rate-limit failed and successful authentication attempts
- Alert on OOMKiller events targeting DNS infrastructure hosts
How to Mitigate CVE-2026-42005
Immediate Actions Required
- Disable the internal web server if it is not required for operations
- Restrict network access to the web server port using firewall rules, allowing only trusted management hosts
- Rotate API keys and ensure they are not shared across low-trust integrations
- Apply the patch referenced in the PowerDNS Security Advisory 2026-07 as soon as it is available for your distribution
Patch Information
PowerDNS has published fixed versions in PowerDNS Security Advisory 2026-07. Administrators should consult the advisory for the specific patched releases applicable to their deployment and upgrade promptly.
Workarounds
- Set webserver=no in pdns.conf to disable the internal web server entirely
- Bind the web server to localhost only using webserver-address=127.0.0.1 if remote access is not required
- Configure webserver-allow-from to restrict access to specific trusted management subnets
- Place the web server behind a reverse proxy that enforces request size limits and rate limiting
# Configuration example - pdns.conf hardening
webserver=no
# Or, if the web server is required:
webserver-address=127.0.0.1
webserver-allow-from=10.0.0.0/24
webserver-password=<strong-random-password>
api-key=<strong-random-api-key>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

