{"id":"CVE-2026-57497","aliases":["CVE-2026-57497","GHSA-g35j-m5xg-vh3q","GO-2026-6099"],"related":[],"kind":"vulnerability","state":"published","title":"webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules","summary":"webtransport-go is an implementation of the WebTransport protocol. Prior to 0.11.1, Session.parseNextCapsule() in session.go skips an unknown WebTransport capsule on the HTTP/3 request stream by calling io.ReadAll on the capsule reader, retaining the complete declared capsule body in memory. A malicious peer can send a large unknown capsule and cause a client or server to allocate memory for the full payload; QUIC flow control does not bound the total retained allocation because reading advances the flow-control window while the received bytes remain in memory. The resulting memory and resource exhaustion can disrupt or crash the affected process. This issue is fixed in version 0.11.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"webtransport-go is an implementation of the WebTransport protocol. Prior to 0.11.1, Session.parseNextCapsule() in session.go skips an unknown WebTransport capsule on the HTTP/3 request stream by calling io.ReadAll on the capsule reader, retaining the complete declared capsule body in memory. A malicious peer can send a large unknown capsule and cause a client or server to allocate memory for the full payload; QUIC flow control does not bound the total retained allocation because reading advances the flow-control window while the received bytes remain in memory. The resulting memory and resource exhaustion can disrupt or crash the affected process. This issue is fixed in version 0.11.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAn 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.\n\n## Impact\n\nA 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.\n\n## Details\n\nWebTransport 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.\n\nwebtransport-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.\n\nQUIC 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.\n\n## The Fix\n\nwebtransport-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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules in github.com/quic-go/webtransport-go","format":"markdown","source":"go"}],"published":"2026-07-24T20:49:28.000Z","modified":"2026-09-30T17:51:56.193Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 0.11.1","status":"affected"}],"vendor":"quic-go","product":"webtransport-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.11.1"}],"ecosystem":"Go","package":"github.com/quic-go/webtransport-go","purl":"pkg:golang/github.com/quic-go/webtransport-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.11.1"}],"ecosystem":"Go","package":"github.com/quic-go/webtransport-go","purl":"pkg:golang/github.com/quic-go/webtransport-go","source":"go"}],"references":[{"url":"https://github.com/quic-go/webtransport-go/security/advisories/GHSA-g35j-m5xg-vh3q","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/quic-go/webtransport-go/pull/290","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/quic-go/webtransport-go/commit/3aecd11736579530ff067651c30a543eb0b4b8c4","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/quic-go/webtransport-go/releases/tag/v0.11.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/quic-go/webtransport-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-14T19:22:14.262Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57497","url":"https://www.cve.org/CVERecord?id=CVE-2026-57497","licence":"CVE Terms of Use","modified":"2026-09-14T20:06:48.086Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g35j-m5xg-vh3q","url":"https://github.com/advisories/GHSA-g35j-m5xg-vh3q","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:51.904Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6099","url":"https://pkg.go.dev/vuln/GO-2026-6099","licence":"CC-BY-4.0","modified":"2026-08-18T15:00:16.039Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57497","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57497","licence":"Public domain","modified":"2026-09-30T17:51:56.193Z"}],"updatedAt":"2026-11-25T22:59:38.313Z","epss":{"score":0.00469,"percentile":0.42237,"date":"2026-12-01T12:00:22.000Z"}}