webtransport-go affected by Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule
cve-program · CVE-2026-21434
Publishedwebtransport-go is an implementation of the WebTransport protocol. From 0.3.0 to 0.9.0, an attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. This vulnerability is fixed in 0.10.0.
Read the publisher's advisoryeuvd · EUVD-2026-6715
Publishedwebtransport-go is an implementation of the WebTransport protocol. From 0.3.0 to 0.9.0, an attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. This vulnerability is fixed in 0.10.0.
Read the publisher's advisorynvd · CVE-2026-21434
Publishedwebtransport-go is an implementation of the WebTransport protocol. From 0.3.0 to 0.9.0, an attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. This vulnerability is fixed in 0.10.0.
Read the publisher's advisoryosv · GHSA-g6x7-jq8p-6q9q
Published## Summary An attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. ## Details WebTransport over HTTP/3, as defined in draft-ietf-webtrans-http3, uses the WT_CLOSE_SESSION capsule to signal session termination with an optional detailed error. The draft specifies that the length of the Application Error Message in this capsule MUST NOT exceed 1024 bytes. In affected versions of webtransport-go, the parser does not enforce this 1024-byte maximum when processing incoming WT_CLOSE_SESSION capsules. A peer can send a capsule with an excessively large payload, forcing the recipient to allocate and buffer the full amount of transmitted data without bound. ## The Fix webtransport-go now limits the length of the parsed Application Error Message to 1024 bytes in WT_CLOSE_SESSION capsules by reading no more than this amount. This prevents excessive memory consumption.
Read the publisher's advisoryosv · GO-2026-4485
Publishedwebtransport-go: Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule in github.com/quic-go/webtransport-go
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-21434 · CVE overview and exploitation status
cve-program · CVE-2026-21434
- https://github.com/quic-go/webtransport-go/security/advisories/GHSA-g6x7-jq8p-6q9q
- https://github.com/quic-go/webtransport-go/releases/tag/v0.10.0
euvd · EUVD-2026-6715
- https://github.com/quic-go/webtransport-go/security/advisories/GHSA-g6x7-jq8p-6q9q
- https://github.com/quic-go/webtransport-go/releases/tag/v0.10.0
nvd · CVE-2026-21434
- https://github.com/quic-go/webtransport-go/releases/tag/v0.10.0
- https://github.com/quic-go/webtransport-go/security/advisories/GHSA-g6x7-jq8p-6q9q
osv · GHSA-g6x7-jq8p-6q9q
- https://github.com/quic-go/webtransport-go/security/advisories/GHSA-g6x7-jq8p-6q9q
- https://nvd.nist.gov/vuln/detail/CVE-2026-21434
- https://github.com/quic-go/webtransport-go
- https://github.com/quic-go/webtransport-go/releases/tag/v0.10.0
osv · GO-2026-4485
Related changes
Linked by CVE identifierNo related changes are available here.