Sep 18, 2026·5 min read·18 visits
CoreDNS alternative transports failed to enforce default message acceptance policies on DNS headers, allowing remote attackers to send unauthorized DNS UPDATE queries that are forwarded to trusting upstream resolvers.
A protocol-level validation bypass in CoreDNS versions prior to 1.14.7 allows unauthenticated remote attackers to proxy unauthorized DNS UPDATE messages (Opcode 5) using modern alternative transport layers such as DoH, DoH3, DoQ, and gRPC. If upstream authoritative servers trust the CoreDNS server's source IP and do not enforce TSIG authentication, attackers can inject, alter, or delete DNS zone records, leading to potential zone takeover or traffic redirection.
CoreDNS is a modular DNS server widely deployed in cloud-native environments, including as the default name resolution service in Kubernetes clusters.\n\nThe vulnerability tracked as CVE-2026-86003 is an architectural validation bypass affecting alternative transport implementations within CoreDNS. These alternative transport endpoints include DNS-over-HTTPS (DoH), DNS-over-HTTP/3 (DoH3), DNS-over-QUIC (DoQ), and DNS-over-gRPC.\n\nWhile traditional UDP, TCP, and DNS-over-TLS (DoT) servers enforce strict message validation policies on incoming packets, the alternative transport listeners failed to invoke the default validation framework when parsing network frames. This allows unauthenticated remote attackers to send unauthorized dynamic DNS update queries that the server subsequently processes and forwards to upstream authoritative resolvers.
In CoreDNS, incoming DNS messages processed over standard UDP or TCP transports are routed through parsing wrappers that leverage the default message acceptance logic defined by the Go DNS library ('github.com/miekg/dns'). The central function 'dns.DefaultMsgAcceptFunc' validates header opcodes and flags, rejecting administrative opcodes like 'UPDATE' (Opcode 5) by default.\n\nIn affected CoreDNS versions prior to 1.14.7, alternative and encrypted transports handled payload extraction independently. Rather than passing the raw extracted byte payloads through the validated deserialization logic, these handlers directly invoked the library's raw 'Unpack()' method on the unpacked message instances.\n\nThe 'Unpack()' method deserializes wire bytes into a 'dns.Msg' structure but does not enforce the 'dns.DefaultMsgAcceptFunc' filtering. This allows any unauthenticated client to deliver high-privilege opcodes, such as RFC 2136 'UPDATE' payloads, without triggering the boundary access controls. The unpacked message is subsequently treated as a normal DNS query and routed into the core plugin architecture.
To visualize the propagation of unauthorized payloads, consider the network path of the exploit from the attacker to the internal DNS infrastructure.\n\nmermaid\ngraph LR\n Attacker[\"Untrusted Attacker\"]\n CoreDNS[\"CoreDNS Server (Vulnerable Listener)\"]\n Upstream[\"Upstream Authoritative DNS Server\"]\n\n Attacker -- \"DoH POST /dns-query<br>(Opcode 5: UPDATE)\" --> CoreDNS\n CoreDNS -- \"Raw DNS Update (Opcode 5)<br>(CoreDNS Source IP)\" --> Upstream\n Upstream -- \"Processes Update\" --> Upstream\n\n\nWhen CoreDNS forwards the unpacked message via the 'forward' or 'proxy' plugins, the packet arrives at the upstream authoritative nameserver with the source IP of the CoreDNS pod or server. Because many environments establish trusted zones based on internal IP allowlists, the upstream server assumes the request is legitimate and executes the record update.
The vulnerability was addressed in commit '530b0a5ff2ad68cc0421f10dd93568945cc671c9' by introducing a standardized request parsing helper under 'plugin/pkg/dnsutil/message.go'.\n\nThis utility, 'UnpackRequest', explicitly decodes the DNS header structure and runs validation prior to performing full deserialization. This prevents raw 'UPDATE' operations from propagating further.\n\ngo\npackage dnsutil\n\nimport (\n\t\"encoding/binary\"\n\t\"errors\"\n\n\t\"github.com/miekg/dns\"\n)\n\nvar errRequestRejected = errors.New(\"dns request rejected\")\n\n// UnpackRequest unpacks a request after applying the default miekg/dns request policy.\nfunc UnpackRequest(msg []byte) (*dns.Msg, error) {\n\tvar header dns.Header\n\t// Partially decode the wire packet header\n\tif _, err := binary.Decode(msg, binary.BigEndian, &header); err != nil {\n\t\treturn nil, dns.ErrBuf\n\t}\n\t// Validate the header flags using the standard acceptance function\n\tif dns.DefaultMsgAcceptFunc(header) != dns.MsgAccept {\n\t\treturn nil, errRequestRejected\n\t}\n\n\trequest := new(dns.Msg)\n\treturn request, request.Unpack(msg)\n}\n\n\nThe alternative listeners, such as the gRPC listener ('core/dnsserver/server_grpc.go'), were then modified to utilize 'dnsutil.UnpackRequest' instead of direct unpacking:\n\ndiff\n-msg := new(dns.Msg)\n-err := msg.Unpack(in.GetMsg())\n+msg, err := dnsutil.UnpackRequest(in.GetMsg())\n if err != nil {\n \treturn nil, err\n }\n
An attacker targeting this vulnerability must identify a CoreDNS instance exposing an alternative transport mechanism, such as a DNS-over-HTTPS (DoH) endpoint. The attacker does not require credentials or access to the internal network if the DoH server is exposed externally.\n\nThe attacker crafts a binary-encoded RFC 2136 DNS UPDATE query. This message specifies the targeted domain zone (e.g., 'internal.zone') and includes Resource Record modification directives (e.g., adding an 'A' record pointing to a rogue IP address).\n\nThe payload is then encapsulated inside an HTTP POST request to the '/dns-query' path, utilizing the 'application/dns-message' content type. Because the DoH handler does not validate the header opcode, the CoreDNS server treats it as a legitimate request, matches the zone against the 'forward' plugin, and forwards it to the upstream nameserver under its own trusted IP footprint.
The impact of a successful exploitation is a complete compromise of integrity for DNS records handled by the trusted upstream server. Attackers can hijack internal domain resolution, route traffic to malicious servers, manipulate MX records to intercept corporate mail, or delete existing host entries to disrupt services.\n\nOrganizations should immediately upgrade CoreDNS deployments to version 1.14.7 or later. This release enforces validation across all transport pathways.\n\nFor systems where immediate upgrades are unfeasible, defensive actions include disabling the 'doh', 'grpc', or 'quic' plugins in the active 'Corefile' configuration. Furthermore, upstream servers must be reconfigured to require cryptographic Transaction Signatures (TSIG) for any zone modification commands, neutralizing source-IP based authorization mechanisms.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N| Attribute | Detail |
|---|---|
| CWE ID | CWE-441 |
| Attack Vector | Network (AV:N) |
| CVSS Score | 7.5 (High) |
| Exploit Status | poc |
| KEV Status | Not Listed |
| Impact | High Integrity Impact (Zone manipulation) |
CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.