Vulnerability · Published Jun 4, 2026 · Assigned by GitHub_M

CVE-2026-40898quic-go: HTTP/3 QPACK Trailer Expansion Memory Exhaustion

Medium 5.3

In plain English

A medium-severity resource allocation without limits in quic-go from quic-go. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 66.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-lucas-clemente-quic-gono fix listedDEBIAN-CVE-2026-40898
Debian:13golang-github-lucas-clemente-quic-gono fix listedDEBIAN-CVE-2026-40898
Debian:14golang-github-lucas-clemente-quic-gono fix listedDEBIAN-CVE-2026-40898
Gogithub.com/quic-go/quic-go0.59.1GHSA-vvgj-x9jq-8cj9
Gogithub.com/quic-go/quic-go0.59.1GO-2026-5676
Ubuntu:22.04:LTSgolang-github-lucas-clemente-quic-gono fix listedUBUNTU-CVE-2026-40898
Ubuntu:24.04:LTSgolang-github-lucas-clemente-quic-gono fix listedUBUNTU-CVE-2026-40898
Ubuntu:25.10golang-github-lucas-clemente-quic-gono fix listedUBUNTU-CVE-2026-40898
Ubuntu:26.04:LTSgolang-github-lucas-clemente-quic-gono fix listedUBUNTU-CVE-2026-40898
Ubuntu:26.10golang-github-lucas-clemente-quic-gono fix listedUBUNTU-CVE-2026-40898

Affected products (as reported)

VendorProductVersions
quic-go quic-go < 0.59.1

Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References