P4 · Info
Unbounded allocation from peer-declared frame length in github.com/gobwas/ws
- GHSA-4xr6-hc3h-f6jq
- 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.
Text from the OSV record.
Recommendation
github.com/gobwas/ws
- If you run a version before 1.5.0update to 1.5.0 or latergithub.com/gobwas/ws 1.5.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
github.com/gobwas/wsGo
Affected versions Fixed in before 1.5.0 1.5.0
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.