Skip to content

chore(deps): update module github.com/quic-go/quic-go to v0.59.1 [security] (alauda-v0.65.0) - #182

Open
alaudaa-renovate[bot] wants to merge 1 commit into
alauda-v0.65.0from
renovate/alauda-v0.65.0-go-github.com-quic-go-quic-go-vulnerability
Open

chore(deps): update module github.com/quic-go/quic-go to v0.59.1 [security] (alauda-v0.65.0)#182
alaudaa-renovate[bot] wants to merge 1 commit into
alauda-v0.65.0from
renovate/alauda-v0.65.0-go-github.com-quic-go-quic-go-vulnerability

Conversation

@alaudaa-renovate

@alaudaa-renovate alaudaa-renovate Bot commented Jul 17, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
github.com/quic-go/quic-go v0.57.1 -> v0.59.1 age confidence

HTTP/3 QPACK Trailer Expansion Memory Exhaustion in github.com/quic-go/quic-go

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

More information

Details

HTTP/3 QPACK Trailer Expansion Memory Exhaustion in github.com/quic-go/quic-go

Severity

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


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

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

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 OSV and 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 https://github.com/quic-go/quic-go/pull/5642, which adds validation for HTTP/3 trailers.

v0.59.0

Compare Source

This release adds a couple of new features:

  • Adds an API to peek stream data on ReceiveStream and Stream: #​5501
  • Adds an API to peek the next varint on a stream: #​5502
  • Reworks the API exposed by the HTTP/3 package for WebTransport: #​5509, #​5512. Regular HTTP/3 use cases should not be affected by these changes.
  • Adds support for HTTP request trailers (trailers sent by the client): #​5507

Breaking Changes

  • Removes the deprecated ClientHelloInfo: #​5497
  • Removes the deprecated ConnectionTracingID and ConnectionTracingKey: #​5521
  • http3: the qlogger is now closed after all streams have been handled: #​5524
  • The ConnectionState now reports both the local and the remote status of the QUIC Datagram and Reliable Stream Reset extensions: #​5533

Other Notable Fixes

  • Fixes an infinite loop of PING-only packets caused by a bug in the PTO queueing logic: #​5538 and #​5539
  • http3: Fixes a race condition between new request streams and GOAWAY: #​5522
  • qlog: Fixes a race condition between RecordEvent and Close: #​5523

Changelog

Full Changelog: quic-go/quic-go@v0.58.0...v0.59.0

v0.58.1

Compare Source

This patch release backports fixes for a bug in the PTO queueing logic that could lead to an infinite loop of PING packets.

Bug Fixes

  • ackhandler: fix qlogging of outstanding packet count (#​5538)
  • ackhandler: fix counting of packets queued for PTO probing (#​5539)

v0.58.0

Compare Source

This release optimizes the QUIC handshake:

  • Multiple incoming packets are now processed before sending an acknowledgment, reducing the total number of packets sent: #​5451
  • ACK frames are now packed into coalesced packets, reducing the need to send a separate packet just for the ACK in many cases: #​5477
  • When packets are buffered during the handshake, this now doesn't lead to inflated RTT measurements anymore: #​5493, #​5494

Other notable changes

  • quic-go now has a new logo: #​5484
  • ACK frames can now be encoded with up to 64 ranges (previously: 32): #​5476
  • Serializing ACK frames is now significantly faster: #​5476
  • Improved batch packet processing logic: #​5478
  • qlog: added support for the datagram_id on packet_sent, packet_received and packet_buffered events, using the CRC32 of the packet: #​5455

Changelog

Full Changelog: quic-go/quic-go@v0.57.0...v0.58.0


Configuration

📅 Schedule: Branch creation - "" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Renovate Bot.

@alaudaa-renovate alaudaa-renovate Bot added the dependencies Pull requests that update a dependency file label Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant