Skip to content

Update module github.com/quic-go/quic-go to v0.59.1 [SECURITY] - #3627

Merged
BaseMax merged 2 commits into
mainfrom
renovate/go-github.com-quic-go-quic-go-vulnerability
Oct 15, 2026
Merged

BaseMax merged 2 commits into
mainfrom
renovate/go-github.com-quic-go-quic-go-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/quic-go/quic-go v0.59.0 → v0.59.1 age confidence

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

CVE-2026-40898 / GHSA-vvgj-x9jq-8cj9

More information

Details

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.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

quic-go/quic-go (github.com/quic-go/quic-go)

v0.59.1

Compare Source

This patch release backports #​5642, which adds validation for HTTP/3 trailers.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: macewindu/go.sum
go: downloading github.com/quic-go/quic-go v0.59.1
go: downloading github.com/antchfx/xpath v1.3.5
go: module . listed in go.work file requires go >= 1.25.0, but go.work lists go 1.24.0; to download and use go 1.25.0:
	go work use
go: module ../pdfstar listed in go.work file requires go >= 1.25.0, but go.work lists go 1.24.0; to download and use go 1.25.0:
	go work use

File name: pdfstar/go.sum
go: downloading github.com/jung-kurt/gofpdf/v2 v2.17.3
go: downloading google.golang.org/protobuf v1.36.10
go: module ../macewindu listed in go.work file requires go >= 1.25.0, but go.work lists go 1.24.0; to download and use go 1.25.0:
	go work use
go: module . listed in go.work file requires go >= 1.25.0, but go.work lists go 1.24.0; to download and use go 1.25.0:
	go work use

@renovate
renovate Bot force-pushed the renovate/go-github.com-quic-go-quic-go-vulnerability branch 4 times, most recently from d4d4da0 to 77794d4 Compare October 15, 2026 16:53
@renovate
renovate Bot force-pushed the renovate/go-github.com-quic-go-quic-go-vulnerability branch from 77794d4 to 4ed2faf Compare October 15, 2026 17:16
@BaseMax
BaseMax merged commit e0c8a9e into main Oct 15, 2026
5 of 17 checks passed
@renovate
renovate Bot force-pushed the renovate/go-github.com-quic-go-quic-go-vulnerability branch from dadfbd2 to e6d4f45 Compare October 15, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants