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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-06-03T20:59:49.000Z
- Modified: 2026-09-10T03:50:50.767Z
- Also known as: GHSA-vvgj-x9jq-8cj9, GO-2026-5676
- Related: CGA-54j9-cg2g-pxxm
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- quic-go quic-go: < 0.59.1
- github.com/quic-go/quic-go (Go): before 0.59.1
- quic-go_project quic-go: before 0.59.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-40898](https://www.cve.org/CVERecord?id=CVE-2026-40898), CVE Terms of Use, modified 2026-06-04
- GitHub Advisory Database: [GHSA-vvgj-x9jq-8cj9](https://github.com/advisories/GHSA-vvgj-x9jq-8cj9), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5676](https://pkg.go.dev/vuln/GO-2026-5676), CC-BY-4.0, modified 2026-07-25
- NVD: [CVE-2026-40898](https://nvd.nist.gov/vuln/detail/CVE-2026-40898), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-40898 · Whole record: https://cve.day/CVE-2026-40898.json · Rebuilt by cve.day 2026-11-25T22:59:23.720Z
