GHSA-4xr6-hc3h-f6jq
Not scored
Unbounded allocation from peer-declared frame length in github.com/gobwas/ws
- Severity
- Not scored
- Published
- Last changed
- Also known as
- GO-2026-6940
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/gobwas/ws (Go) | before 1.5.0 | Go Vulnerability Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| Go Vulnerability Database | GO-2026-6940 changed 2026-11-23 | CC-BY-4.0 |