CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-82399

CVE-2026-82399: Resource Exhaustion Denial of Service in CoreDNS Custom Transports

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 18, 2026·7 min read·36 visits

Executive Summary (TL;DR)

CoreDNS custom transports (DoH, DoQ, gRPC) processed raw payloads without validating the DNS header, enabling unauthenticated remote attackers to trigger out-of-memory crashes via nested DNS name compression pointers.

CVE-2026-82399 is a resource management vulnerability in CoreDNS affecting custom DNS transport pathways. Prior to version 1.14.7, transports including DNS-over-HTTPS (DoH), DNS-over-QUIC (DoQ), and DNS-over-gRPC executed the resource-intensive unpack method of the underlying Go DNS library on raw, untrusted incoming payloads before validating the fixed 12-byte DNS header. An unauthenticated remote attacker can exploit this behavior by using nested DNS name compression pointers to trigger substantial heap allocations, leading to memory exhaustion and server termination.

Vulnerability Overview

CoreDNS is a highly configurable, Cloud Native Computing Foundation (CNCF) graduated DNS server written in Go. The architecture of CoreDNS relies on custom plugin chains to process requests and serve records. While standard UDP and TCP listeners leverage the validation routines of the underlying Go DNS library (github.com/miekg/dns), custom secure transport protocols are managed via independent implementations within the CoreDNS codebase.

These custom transport interfaces support modern, encrypted protocols: DNS-over-HTTPS (DoH), DNS-over-QUIC (DoQ), and DNS-over-gRPC. These pathways expose a distinct network-facing attack surface. Because these handlers bypass the initial protocol wrappers of standard DNS listeners, raw network bytes are ingested and handled directly by custom parsing routines.

The vulnerability, designated as CVE-2026-82399, represents a resource allocation flaw classified under CWE-770. Unauthenticated remote attackers can exploit this interface to trigger large, rapid heap allocations. The resulting memory exhaustion bypasses traditional security controls and induces an Out-of-Memory (OOM) termination of the active CoreDNS instance.

Root Cause Analysis

The core flaw lies in the sequencing of packet validation within the custom transport listeners. In standard TCP and UDP servers, the incoming wire format is subjected to header validation. The github.com/miekg/dns package implements dns.DefaultMsgAcceptFunc to evaluate the 12-byte fixed DNS header before parsing the payload body. If the header violates standard policy (such as containing multiple question counts), parsing is aborted immediately.

In CoreDNS versions prior to 1.14.7, the custom listeners (plugin/pkg/doh/doh.go, core/dnsserver/server_quic.go, and core/dnsserver/server_grpc.go) did not implement this header-level validation step. Instead, they read the raw payload bytes directly from the network stream and immediately initialized a new dns.Msg structure. The listeners then immediately invoked msg.Unpack(payload) to parse the entire packet.

By calling Unpack() directly, CoreDNS is forced to trust the section count variables defined in the packet's 12-byte header. These counts represent the number of entries in the Question, Answer, Authority, and Additional sections. The parser pre-allocates slice memory proportional to these declared counts. Additionally, when encountering DNS name compression pointers (RFC 1035 Section 4.1.4), the parser recursively resolves the pointers, resulting in a severe memory amplification factor. An attacker can use these nested offsets to force huge string allocations, consuming hundreds of megabytes of memory per request.

Code Analysis

Analyzing the patch commit 530b0a5ff2ad68cc0421f10dd93568945cc671c9 reveals how CoreDNS corrected the processing sequence. The primary fix introduces a new package plugin/pkg/dnsutil containing the UnpackRequest helper. This helper reads the 12-byte header explicitly, validates it via the official library policy, and rejects invalid structures before calling the resource-intensive Unpack method.

// plugin/pkg/dnsutil/message.go
package dnsutil
 
import (
	"encoding/binary"
	"errors"
	"github.com/miekg/dns"
)
 
var errRequestRejected = errors.New("dns request rejected")
 
// UnpackRequest unpacks a request after applying the default miekg/dns request policy.
func UnpackRequest(msg []byte) (*dns.Msg, error) {
	var header dns.Header
	// Safely decode only the first 12 bytes of the message to parse the header
	if _, err := binary.Decode(msg, binary.BigEndian, &header); err != nil {
		return nil, dns.ErrBuf
	}
	// Check if the header conforms to the standard DNS message policy
	if dns.DefaultMsgAcceptFunc(header) != dns.MsgAccept {
		return nil, errRequestRejected
	}
 
	request := new(dns.Msg)
	// Proceed to unpack the entire payload only after the header is validated
	return request, request.Unpack(msg)
}

The custom handlers were updated to integrate this check. For example, in core/dnsserver/server_quic.go, the unsafe invocation is replaced by the secure wrapper:

// Vulnerable implementation
req := &dns.Msg{}
err = req.Unpack(buf)
 
// Patched implementation
req, err := dnsutil.UnpackRequest(buf)

This structural modification ensures that any malformed message containing an excessive question count or nested pointers is rejected during the 12-byte header check. No significant heap allocation or recursive pointer decompression occurs for malformed requests.

Protocol Flow Sequence

To visualize the packet handling logic and the vulnerability's placement in the pipeline, refer to the sequence diagram below. This diagram illustrates how the omission of the header check allowed payloads to bypass initial filtering.

The sequence demonstrates that because heap allocation is triggered in the unpacking layer, subsequent processing blocks (such as security plugins) are never reached. Mitigations must occur at or before this deserialization phase to protect server resources.

Exploitation Analysis

Exploitation of CVE-2026-82399 relies on crafting a DNS packet containing highly compressed domain structures paired with an inflated question count. Because the transport endpoints do not validate the 12-byte header prior to unpacking, the parser is forced to process the entire query immediately. The attacker targets DoH (/dns-query), DoQ, or gRPC listeners.

An attack packet is structured with the QDCOUNT (Question Count) field configured to a high value, such as 0x2A7E (10,878 questions). The first question contains a standard domain string (e.g., \x07example\x03com\x00). Subsequent questions do not define new strings; instead, they consist of compression pointers referencing the first question's byte offset (0xC00C).

+-------------------------------------------------------------+
| DNS Header (12 bytes)                                       |
| ID: 0x1234 | Flags: 0x0100 | QDCOUNT: 0x2A7E (10,878 Qs)   |
+-------------------------------------------------------------+
| First Question:                                             |
| \x07example\x03com\x00 | Type: A (0x0001) | Class: IN (0x0001)     |
+-------------------------------------------------------------+
| Questions 2 - 10,878:                                       |
| Offset Pointer: 0xC00C | Type: A | Class: IN                 |
+-------------------------------------------------------------+

When the vulnerable CoreDNS server processes this payload, the parser attempts to reconstruct the domain name for each of the 10,878 references. This forces the Go runtime to pre-allocate massive internal slices on the heap and iteratively construct string representations. This decompression cycle achieves an allocation amplification factor exceeding 150x. Under concurrent load, several threads processing such payloads will trigger the Linux Out-Of-Memory (OOM) killer, terminating the DNS service.

Impact Assessment

The ultimate impact of successful exploitation is a complete Denial of Service (DoS) of the CoreDNS server. Because DNS is a foundation block of modern cloud infrastructure (especially inside Kubernetes clusters), the termination of CoreDNS has cascading effects. Microservices lose the ability to resolve external APIs, database endpoints, or internal cluster services, resulting in widespread service failure.

The vulnerability is rated 7.5 (High) under CVSS v3.1. The attack vector is Network, and the complexity is Low, requiring no special privileges or user interaction. Although it does not permit remote code execution (RCE) or data exfiltration, the impact on Availability is absolute.

Furthermore, because the crash occurs during packet parsing before the CoreDNS plugin architecture is initialized, traditional rate-limiting plugins (such as ratelimit) or access controls (such as acl) are bypassed. The server's memory is exhausted before any plugin can inspect or drop the malicious connection, making network-level filtering or application updates the only viable avenues of protection.

Remediation & Detection

The primary and recommended mitigation is upgrading CoreDNS to version 1.14.7 or higher. This version integrates the dnsutil.UnpackRequest wrapper across all custom secure listeners, ensuring malformed packet headers are rejected before allocation or decompression can take place.

If immediate upgrading is not feasible, several tactical workarounds can be deployed. For environments running DNS-over-HTTPS (DoH), a Web Application Firewall (WAF) or reverse proxy can be positioned in front of the CoreDNS instances. The WAF should be configured to inspect HTTP POST requests to /dns-query and block payloads where the DNS header bytes (specifically bytes 4-5 representing QDCOUNT) exceed a safe threshold (typically QDCOUNT <= 1).

Additionally, if DoH, DoQ, or DNS-over-gRPC are not required for network operations, these listeners should be disabled in the Corefile. Restricting DNS services solely to standard UDP and TCP listeners removes the vulnerable code paths from the active attack surface. Standard listeners natively utilize the underlying library's secure parsing routine and are not affected by this vulnerability.

Official Patches

corednsCoreDNS 1.14.7 Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected Systems

CoreDNS deployments using custom transports (DoH, DoQ, gRPC)

Affected Versions Detail

Product
Affected Versions
Fixed Version
coredns
coredns
>= v1.10.1, < v1.14.7v1.14.7
AttributeDetail
CWE IDCWE-770
Attack VectorNetwork
CVSS v3.1 Score7.5 (High)
Exploit StatusProof-of-Concept
KEV StatusNot Listed
Vulnerability TypeDenial of Service (DoS)

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
CWE-770
Allocation of Resources Without Limits or Throttling

The software allocates memory or other resources based on user-controlled input without sufficient validation or limitation, allowing an attacker to cause resource exhaustion.

Known Exploits & Detection

GitHub Security AdvisoryDetails outlining packet structure and reproduction mechanism.

Vulnerability Timeline

Fix commit 530b0a5ff2ad68cc0421f10dd93568945cc671c9 authored by Ville Vesilehto
2026-07-16
CVE-2026-82399 registered and publicly disclosed
2026-09-16

References & Sources

  • [1]GitHub Security Advisory GHSA-mrg3-qvqr-jw29
  • [2]NVD CVE-2026-82399 Detail

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-128068
5.3

CVE-2026-128068: Regular Expression Denial of Service in rails-html-sanitizer

CVE-2026-128068 (GHSA-cpgf-5mjf-73p7) is a Regular Expression Denial of Service (ReDoS) vulnerability in the rails-html-sanitizer Ruby gem affecting versions 1.0.3 through 1.7.1. The flaw resides in the Rails::HTML::PermitScrubber#scrub_attribute method, which uses the multiline regular expression /^\s*[^#\s].*/m to enforce local-only URI fragment references on SVG elements. On Ruby runtimes prior to version 3.2 (CRuby <= 3.1 and JRuby), evaluating an attribute value composed of repeated newline and whitespace characters without a hash character triggers quadratic backtracking O(n^2). Applications are only vulnerable if their sanitization allowlist is explicitly configured to permit SVG reference elements such as <use> alongside href or xlink:href attributes.

Alon Barad
Alon Barad
2 views•9 min read
•about 2 hours ago•CVE-2026-126360
5.3

CVE-2026-126360: Regular Expression Denial of Service in OpenTelemetry Python opentelemetry-api

CVE-2026-126360 (GHSA-mf5v-w3w3-f6cg) is an algorithmic complexity vulnerability (Regular Expression Denial of Service) in the trace context propagation logic of the opentelemetry-api package within the OpenTelemetry Python ecosystem. In versions prior to 1.45.2, the TraceContextTextMapPropagator.extract() method utilizes a regular expression susceptible to quadratic-time backtracking when parsing malformed W3C traceparent headers containing long sequences of whitespace followed by an embedded newline character. In Python applications—particularly those using single-threaded asynchronous event loops—an unauthenticated remote attacker transmitting payloads over newline-preserving carriers can monopolize CPU execution and induce application-level Denial of Service.

Alon Barad
Alon Barad
3 views•10 min read
•about 3 hours ago•CVE-2026-126359
3.4

CVE-2026-126359: Cross-Site Scripting via Split Closing Style Tag in Hono CSS Helper

CVE-2026-126359 (GHSA-3gg2-335m-rxc6) is an improper input neutralization vulnerability (CWE-79) in the Hono web framework (`honojs/hono`). Versions from 3.12.0 prior to 4.13.16 evaluate and escape interpolated strings in the `hono/css` helper individually before concatenating template chunks and stripping CSS comments. When a `<` character and a `/style>` sequence are split across template boundaries, adjacent interpolations, or separated by a CSS comment, the sanitizer fails to escape the closing tag sequence. During Server-Side Rendering (SSR), the `<Style />` component outputs an unescaped `</style>` delimiter, permitting an attacker to break out of the CSS raw text context and execute arbitrary HTML and JavaScript in the victim's browser.

Alon Barad
Alon Barad
4 views•10 min read
•about 4 hours ago•CVE-2026-126358
5.3

CVE-2026-126358: Authorization Bypass via Wildcard Middleware Omission in Hono RegExpRouter

An incorrect authorization vulnerability (CWE-863) exists in the Hono web application framework (npm package `hono`) from version 4.1.4 prior to 4.13.16. Flaws in the registration-time coverage calculation and regular expression compilation within `RegExpRouter` cause wildcard middleware to be omitted under three specific routing conditions: parameter pattern equivalence mismatches, wildcard boundary collisions, and request paths containing percent-encoded line terminators. Because Hono's default `SmartRouter` selects `RegExpRouter` for most standard web applications, unauthenticated remote clients can bypass authentication, authorization, or security middleware registered on wildcard paths to directly access protected route handlers or the application's not-found handler.

Alon Barad
Alon Barad
5 views•13 min read
•about 5 hours ago•CVE-2026-126357
5.3

CVE-2026-126357: Authentication Bypass via Mount Path Transformation in Hono

CVE-2026-126357 (GHSA-4m76-xfj5-7975) is an authentication bypass vulnerability in the Hono web application framework prior to version 4.13.16. The flaw resides in the prefix-stripping and URL reconstruction logic of `app.mount()` and the `mount()` middleware. Two distinct path transformation errors—static route-pattern length slicing on dynamic prefixes and URL normalization of decoded pathnames—create a routing discrepancy between the outer Hono router and the mounted sub-application. An unauthenticated attacker can exploit these discrepancies to bypass outer authentication or authorization middleware and access protected inner routes directly.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 6 hours ago•CVE-2026-126356
5.3

CVE-2026-126356: Multipart Form Validation Bypass in Hono Web Framework

A parser differential vulnerability exists in the Hono web application framework versions 4.5.1 prior to 4.13.16. The built-in form validation middleware (`validator('form')`) utilizes an overly restrictive regular expression to evaluate the HTTP `Content-Type` header for `multipart/form-data` payloads. When a client supplies additional valid MIME parameters (such as `charset=utf-8`) or multiple whitespace characters following a semicolon delimiter, the regular expression fails to match. Consequently, the validator passes an empty object to the validation callback instead of the parsed form fields. If the validation logic permits empty objects or only checks for disallowed values on optional properties, the request passes validation, allowing downstream route handlers calling `c.req.parseBody()` or `c.req.formData()` to process unvalidated user input.

Amit Schendel
Amit Schendel
5 views•10 min read