Advisory

GHSA-2f2x-8mwp-p2gc

Also known as: CVE-2026-21438, GO-2026-4483

Summary

webtransport-go: Memory Exhaustion Attack due to Missing Cleanup of Streams Map

Details

Summary
An attacker can cause unbounded memory consumption repeatedly creating and closing many WebTransport streams. Closed streams were not removed from an internal session map, preventing garbage collection of their resources.

Details
webtransport-go maintains an internal map tracking WebTransport streams (both unidirectional and bidirectional) belonging to a session. In affected versions, entries for closed streams were not removed from this map, causing the map to grow indefinitely as streams were created and closed.

A malicious peer can exploit this by opening large numbers of streams and closing them, leading to steady memory growth proportional to the number of closed streams.

The Fix
webtransport-go now removes closed streams from the internal map upon closure. This allows the associated resources to be garbage collected, bounding memory usage to active streams only.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-12 15:29 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.10.0 (semver)

Fixed versions

0.10.0

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