Advisory

GHSA-g35j-m5xg-vh3q

Also known as: CVE-2026-57497, GO-2026-6099

Summary

webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules

Details

Summary

An attacker can cause excessive memory allocation in webtransport-go by sending an unknown WebTransport capsule with a large payload. The implementation skips unknown capsules by reading the entire capsule body into memory, instead of draining it without retaining the data. This can lead to memory exhaustion.

Impact

A misbehaving or malicious peer can cause a denial-of-service (DoS) attack against webtransport-go clients or servers by triggering excessive memory allocation, potentially leading to crashes or resource exhaustion.

Details

WebTransport sessions use capsules on the HTTP/3 request stream. Unknown capsule types are ignored, but the capsule body still needs to be consumed before the next capsule can be parsed.

webtransport-go used io.ReadAll when skipping unknown capsules. Since the capsule reader is only limited by the capsule's declared length, a peer could send a large unknown capsule and cause the receiver to allocate memory for the full capsule body.

QUIC flow control limits buffered data, but it does not bound total allocation here, since reading the stream advances the flow control window while retaining the received bytes in memory.

The Fix

webtransport-go now drains unknown capsules to io.Discard instead of buffering them. This consumes the capsule body so parsing can continue, without retaining the payload in memory.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-24 20:49 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/quic-go/webtransport-go

Go · All systems

Affected

  • introduced 0, fixed 0.11.1 (semver)

Fixed versions

0.11.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences