5.3medium
quic-go: HTTP/3 QPACK Trailer Expansion Memory Exhaustion
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.40% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vvgj-x9jq-8cj9GO-2026-5676
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
| Product or package | Versions | Reported by |
|---|---|---|
| quic-go quic-go | < 0.59.1 | CVE List |
| github.com/quic-go/quic-go (Go) | before 0.59.1 | GitHub Advisory Database, Go Vulnerability Database |
| quic-go_project quic-go | before 0.59.1 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
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.
Impact
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.
Details
In HTTP/3, field sections are compressed using QPACK (RFC 9204). Field sections are used for both HTTP headers and trailers. quic-go's HTTP/3 server and client decode the QPACK-encoded HEADERS frame into header fields, then construct an http.Request or http.Response.
http3.Server.MaxHeaderBytes and http3.Transport.MaxResponseHeaderBytes limit the encoded HEADERS frame size, with defaults of 1 MB for servers and 10 MB for clients. However, they did not limit the decoded field section size. A maliciously crafted HEADERS frame carrying trailers can expand to about 50x the encoded size using QPACK static table entries with long names and/or values.
RFC 9114 requires endpoints to enforce decoded field section size limits via SETTINGS, which quic-go did not do for trailers.
The Fix
quic-go now 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.
Go Vulnerability Database
HTTP/3 QPACK Trailer Expansion Memory Exhaustion in github.com/quic-go/quic-go
NVD (es)
quic-go es una implementación del protocolo QUIC en Go. Antes de la versión 0.59.1, un atacante puede causar una asignación de memoria excesiva en las implementaciones de cliente y servidor HTTP/3 de quic-go al enviar una trama HEADERS codificada en QPACK que se decodifica en una sección de campo de tráiler grande con muchos nombres de campo únicos y/o valores grandes. La implementación construye un 'http.Header' para el 'http.Request' o 'http.Response' correspondiente, mientras que solo aplica límites al tamaño de la trama HEADERS comprimida con QPACK, no a la sección de campo decodificada. Esto puede llevar al agotamiento de la memoria. Esto es muy similar a CVE-2025-64702. La diferencia es que este problema utiliza tráileres HTTP, en lugar de encabezados HTTP, como vector de ataque. Un par con comportamiento incorrecto o malicioso puede causar un ataque de denegación de servicio (DoS) contra los servidores o clientes HTTP/3 de quic-go al desencadenar una asignación de memoria excesiva, lo que podría llevar a fallos o agotamiento de recursos. Esto afecta tanto a servidores como a clientes debido a la construcción simétrica de encabezados. La versión 0.59.1 aplica los límites de tamaño de la sección de campo decodificada de RFC 9114 también para los tráileres. Decodifica incrementalmente las entradas QPACK y verifica el tamaño de la sección de campo después de cada entrada, abortando el flujo si una entrada hace que se exceda el límite.
References
| https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9 | advisory, mitigation, vendor-advisory, web | |
| https://github.com/quic-go/quic-go/releases/tag/v0.59.1 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-40898 | advisory | |
| https://github.com/quic-go/quic-go/pull/5642 | fix, web | |
| https://github.com/quic-go/quic-go/commit/c56e8c79d1627cc1ed6005b421b4b0adadd83665 | fix, web | |
| https://github.com/advisories/GHSA-g754-hx8w-x2g6 | advisory, web | |
| https://github.com/quic-go/quic-go | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40898 changed 2026-06-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vvgj-x9jq-8cj9 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5676 changed 2026-07-25 | CC-BY-4.0 |
| NVD | CVE-2026-40898 changed 2026-07-22 | Public domain |