CVE-2026-40898 Details
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.
A denial-of-service vulnerability has been identified in quic-go, an implementation of the QUIC protocol in Go, prior to version 0.59.1. The issue arises in the HTTP/3 client and server implementations, where an attacker can exploit the QPACK compression mechanism. By sending a HEADERS frame that decodes into a large trailer section with numerous unique field names or substantial values, excessive memory allocation can be triggered. This problem occurs because the implementation constructs an 'http.Header' for the related 'http.Request' or 'http.Response', only regulating the size of the QPACK-compressed HEADERS frame, not the decoded field section. As a result, this vulnerability can lead to memory exhaustion, causing crashes or resource depletion. This issue is similar to CVE-2025-64702, but it specifically involves HTTP trailers as the attack vector.
Users can upgrade to quic-go version 0.59.1 or later, which addresses this vulnerability by enforcing size limits on the decoded field section for HTTP trailers, in accordance with RFC 9114.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/quic-go/quic-go/releases/tag/v0.59.1 | [email protected] | ProductRelease Notes |
| https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| quic-go project quic-go | < 0.59.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 5, 2026 | Initial Analysis | [email protected] |
| Jun 4, 2026 | New CVE Received | [email protected] |