Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/quic-go/quic-go
  4. ›
  5. CVE-2026-40898

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

June 3, 2026

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.

References

  • github.com/advisories/GHSA-g754-hx8w-x2g6
  • github.com/advisories/GHSA-vvgj-x9jq-8cj9
  • github.com/quic-go/quic-go/commit/c56e8c79d1627cc1ed6005b421b4b0adadd83665
  • github.com/quic-go/quic-go/pull/5642
  • github.com/quic-go/quic-go/releases/tag/v0.59.1
  • github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9
  • nvd.nist.gov/vuln/detail/CVE-2026-40898

Code Behaviors & Features

Detect and mitigate CVE-2026-40898 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.59.1

Fixed versions

  • 0.59.1

Solution

Upgrade to version 0.59.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/quic-go/quic-go/CVE-2026-40898.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 11 Jun 2026 12:21:00 +0000.