CVEfocus › CVE database › CVE-2026-40898

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

CVSS 5.3 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2026-06-04Updated 2026-06-04Assigner: GitHub_M

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.

CWE-770

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-lucas-clemente-quic-goFix pendingUBUNTU-CVE-2026-40898
Ubuntu 26.04golang-github-lucas-clemente-quic-goUnder investigationUBUNTU-CVE-2026-40898
Ubuntu 25.10golang-github-lucas-clemente-quic-goWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40898
Ubuntu 24.04golang-github-lucas-clemente-quic-goUnder investigationUBUNTU-CVE-2026-40898
Ubuntu 22.04golang-github-lucas-clemente-quic-goUnder investigationUBUNTU-CVE-2026-40898
Debian 14golang-github-lucas-clemente-quic-goFix pendingDEBIAN-CVE-2026-40898
Debian 13golang-github-lucas-clemente-quic-goFix pendingDEBIAN-CVE-2026-40898
Debian 12golang-github-lucas-clemente-quic-goFix pendingDEBIAN-CVE-2026-40898
Go librarygithub.com/quic-go/quic-goFixed0.59.1GHSA-vvgj-x9jq-8cj9

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.