CVE-2026-40898
HIGH 7.5CVSS 3.1quic-go: HTTP/3 QPACK Trailer Expansion Memory Exhaustion
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.
- Published
- 4 Jun 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-770
- Also known as
- GHSA-vvgj-x9jq-8cj9GO-2026-5676
- Sources
- NVDJSONOSV GHSA-vvgj-x9jq-8cj9JSONOSV GO-2026-5676JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | quic-go_project | quic-gocpe:2.3:a:quic-go_project:quic-go:*:*:*:*:*:*:*:* |
< 0.59.1 | 0.59.1 |
| OSV | Go | github.com/quic-go/quic-go | < 0.59.1 | 0.59.1 |
References
- https://github.com/quic-go/quic-go/releases/tag/v0.59.1 · Product, Release Notes, WEB
- https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9 · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40898 · ADVISORY
- https://github.com/quic-go/quic-go/pull/5642 · WEB, FIX
- https://github.com/quic-go/quic-go/commit/c56e8c79d1627cc1ed6005b421b4b0adadd83665 · WEB, FIX
- https://github.com/advisories/GHSA-g754-hx8w-x2g6 · ADVISORY, WEB
- https://github.com/quic-go/quic-go · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Jun 2026)