GHSA-4xr6-hc3h-f6jq
not scored yetUnbounded allocation from peer-declared frame length in github.com/gobwas/ws
ws.ReadFrame, ws.MustReadFrame, and the wsutil message readers allocate a buffer of the payload length declared in the frame header before reading any payload bytes. A remote unauthenticated peer can send a frame header declaring a large payload length and cause an out-of-memory crash.
- Published
- 23 Nov 2026
- Last modified
- 23 Nov 2026
- Also known as
- GO-2026-6940
- Sources
- OSV GO-2026-6940JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/gobwas/ws | < 1.5.0 | 1.5.0 |
References
- https://github.com/gobwas/ws/security/advisories/GHSA-4xr6-hc3h-f6jq · ADVISORY
- https://github.com/gobwas/ws/commit/6b485812604c20a7174f3d68a64379121bcddfe2 · FIX
- https://github.com/gobwas/ws/pull/229 · FIX
- https://github.com/gobwas/ws/issues/223 · REPORT
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2026)