{"id":"CVE-2026-40898","published":"2026-06-04T17:43:36Z","modified":"2026-06-04T18:40:44Z","title":"quic-go: HTTP/3 QPACK Trailer Expansion Memory Exhaustion","vendor":"quic-go","product":"quic-go","tier":"tail","description":{"text":"quic-go is an implementation of the QUIC protocol in Go. Prior to version 0.59.1, an attacker can cause excessive memory allocation in quic-go's HTTP/3 client and server implementations by sending a QPACK-encoded HEADERS frame that decodes into a large trailer field section with many unique field names and/or large values. The implementation builds an `http.Header` for the corresponding `http.Request` or `http.Response`, while only enforcing limits on the size of the QPACK-compressed HEADERS frame, not on the decoded field section. This can lead to memory exhaustion. This is very similar to CVE-2025-64702. The difference is that this issue uses HTTP trailers, rather than HTTP headers, as the attack vector. A misbehaving or malicious peer can cause a denial-of-service (DoS) attack against quic-go's HTTP/3 servers or clients by triggering excessive memory allocation, potentially leading to crashes or resource exhaustion. This affects both servers and clients due to symmetric header construction. Version 0.59.1 enforces RFC 9114 decoded field section size limits for trailers as well. It incrementally decodes QPACK entries and checks the field section size after each entry, aborting the stream if an entry causes the limit to be exceeded.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00488,"percentile":0.34721,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/quic-go/quic-go/releases/tag/v0.59.1","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":6.94},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"quic-go","affectedVersions":[{"vendor":"quic-go","product":"quic-go","versions":["< 0.59.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-04T18:40:25.619349Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/quic-go/quic-go","vulnerableRanges":["<0.59.1"],"patched":["0.59.1"],"from":["GHSA-vvgj-x9jq-8cj9","GO-2026-5676"],"provenance":"source"}],"summary":{"text":"The flaw is in quic-go, the Go implementation of the QUIC protocol, specifically in its HTTP/3 client and server code, where decoded QPACK trailer field sections are not subject to a size limit before an http.Header is built. An attacker who can send a crafted HEADERS frame over the network to an HTTP/3 server or client, requiring no authentication or user interaction, can force excessive memory allocation and exhaust resources or crash the process. This affects quic-go versions prior to 0.59.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:39Z"},"euvd":{"id":"EUVD-2026-34312","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-quic-go-cve-2025-64702","parents":[{"from":"CVE-2025-64702","to":"CVE-2026-40898","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This is very similar to CVE-2025-64702.","from":"CVE.org","in":"CVE-2026-40898"},{"kind":"osv-related","provenance":"source","id":"GHSA-vvgj-x9jq-8cj9","via":"reference","url":"https://github.com/advisories/GHSA-g754-hx8w-x2g6"},{"kind":"osv-related","provenance":"source","id":"GO-2026-5676","via":"reference","url":"https://github.com/advisories/GHSA-g754-hx8w-x2g6"},{"kind":"same-code","provenance":"machine","files":["http3/headers.go"],"commits":["https://github.com/quic-go/quic-go/commit/5b2d2129f8315da41e01eff0a847ab38a34e83a8","https://github.com/quic-go/quic-go/commit/c56e8c79d1627cc1ed6005b421b4b0adadd83665"],"basis":"shared function","functions":["parseHeaders","parseTrailers"]},{"kind":"similar","provenance":"machine","score":0.68,"basis":"same product + CWE + description similarity"}]}]}}