<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-04T05:30:10.114660+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-63cw-r7xf-jmwr</id>
    <title>GHSA-63cw-r7xf-jmwr — CoreDNS DoH GET oversized dns= query parameter causes pre-validation CPU and memory amplification</title>
    <updated>2026-10-04T05:30:10.125241+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/coredns/coredns</p>
<p>### Summary</p>
<p>CoreDNS's DNS-over-HTTPS (DoH) GET path accepts oversized `dns=` query values and performs substantial request parsing, query unescaping, base64 decoding, and message unpacking work before returning `400 Bad Request`.</p>
<p>A remote, unauthenticated attacker can repeatedly send oversized DoH GET requests to `/dns-query?dns=...` and force high CPU usage, large transient allocations, elevated garbage-collection pressure, and increased resident memory consumption even though the requests are ultimately rejected.</p>
<p>This is a denial-of-service issue caused by expensive pre-validation processing on the DoH GET path.</p>
<p>### Details</p>
<p>The vulnerable flow is in `plugin/pkg/doh/doh.go`:</p>
<p>- `RequestToMsg()` dispatches GET requests to `requestToMsgGet()`:
  - `plugin/pkg/doh/doh.go:79-89`
- `requestToMsgGet()` calls `req.URL.Query()`, extracts `dns`, and passes it directly to `base64ToMsg()`:
  - `plugin/pkg/doh/doh.go:99-108`
- `base64ToMsg()` decodes the full attacker-controlled value via `b64Enc.DecodeString()` and only then attempts to unpack it into a DNS message:
  - `plugin/pkg/doh/doh.go:121-130`</p>
<p>Relevant snippet:</p>
<p>```go
func requestToMsgGet(req *http.Request) (*dns.Msg, error) {
    values := req.URL.Query()
    b64, ok := values["dns"]
    if !ok {
        return nil, fmt.Errorf("no 'dns' query parameter found")
    }
    if len(b64) != 1 {
        return nil, fmt.Errorf("multiple 'dns' query values found")
    }
    return base64ToMsg(b64[0])
}</p>
<p>func base64ToMsg(b64 stri…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-63cw-r7xf-jmwr"/>
  </entry>
</feed>
