permessage-deflate-ruby: Memory exhaustion triggered by message decompression
- CVE-2026-140011
- GHSA-5qm2-87xf-x3ff
- EUVD-2026-139737
Description
permessage-deflate-ruby provides the per-message DEFLATE compression extension for WebSocket connections. Prior to permessage_deflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0, an unauthenticated remote WebSocket client can send a highly compressible message that expands to a much larger size because websocket-driver's :max_length option is checked only after permessage-deflate fully inflates the message. The extension can therefore allocate memory far beyond the wire size and configured message limit, causing memory exhaustion; the coordinated fix enforces :max_length while consuming zlib output and forwards the option through websocket-extensions and websocket-driver. This issue is fixed in permessage_deflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0.
Text from the CVE.org record.
Recommendation
permessage_deflate
- If you run a version before 0.2.0update to 0.2.0 or laterpermessage_deflate 0.2.0 on its registry (opens in a new tab)
websocket-driver
- If you run a version from 0.5.0 to before 0.9.0update to 0.9.0 or laterMajor version change: expect breaking changeswebsocket-driver 0.9.0 on its registry (opens in a new tab)
websocket-extensions
- If you run a version before 0.2.0update to 0.2.0 or laterwebsocket-extensions 0.2.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
faye permessage_deflate
Affected versions Fixed in < 0.2.0 none stated faye permessage-deflate-ruby
Affected versions Fixed in < 0.2.0 none stated faye websocket-driver
Affected versions Fixed in >= 0.5.0, < 0.9.0 none stated faye websocket-extensions
Affected versions Fixed in < 0.2.0 none stated permessage_deflateRubyGems
Affected versions Fixed in before 0.2.0 0.2.0 websocket-driverRubyGems
Affected versions Fixed in from 0.5.0 to before 0.9.0 0.9.0 websocket-extensionsRubyGems
Affected versions Fixed in before 0.2.0 0.2.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.