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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-lucas-clemente-quic-go | no fix listed | DEBIAN-CVE-2026-40898 |
| Debian:13 | golang-github-lucas-clemente-quic-go | no fix listed | DEBIAN-CVE-2026-40898 |
| Debian:14 | golang-github-lucas-clemente-quic-go | no fix listed | DEBIAN-CVE-2026-40898 |
| Go | github.com/quic-go/quic-go | 0.59.1 | GHSA-vvgj-x9jq-8cj9 |
| Go | github.com/quic-go/quic-go | 0.59.1 | GO-2026-5676 |
| Ubuntu:22.04:LTS | golang-github-lucas-clemente-quic-go | no fix listed | UBUNTU-CVE-2026-40898 |
| Ubuntu:24.04:LTS | golang-github-lucas-clemente-quic-go | no fix listed | UBUNTU-CVE-2026-40898 |
| Ubuntu:25.10 | golang-github-lucas-clemente-quic-go | no fix listed | UBUNTU-CVE-2026-40898 |
| Ubuntu:26.04:LTS | golang-github-lucas-clemente-quic-go | no fix listed | UBUNTU-CVE-2026-40898 |
| Ubuntu:26.10 | golang-github-lucas-clemente-quic-go | no fix listed | UBUNTU-CVE-2026-40898 |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9 x_refsource_CONFIRM
- https://github.com/quic-go/quic-go/releases/tag/v0.59.1 x_refsource_MISC