Memory exhaustion in permessage-deflate-ruby message decompression
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Faye permessage-deflate-ruby and permessage_deflate before 0.2.0, websocket-extensions before 0.2.0, and websocket-driver from 0.5.0 before 0.9.0 are affected. The :max_length option in websocket-driver is checked only after permessage-deflate fully inflates a message, so a highly compressible message can expand far beyond its wire size (CWE-409). An unauthenticated remote WebSocket client can send such a message to exhaust server memory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| faye | permessage-deflate-ruby | before 0.2.0 | 0.2.0 | Patch available | CNA |
| faye | permessage_deflate | before 0.2.0 | 0.2.0 | Patch available | CNA |
| faye | websocket-driver | 0.5.0 to before 0.9.0 | 0.9.0 | Patch available | CNA |
| faye | websocket-extensions | before 0.2.0 | 0.2.0 | Patch available | CNA |
- permessage-deflate-ruby Vendorfaye Affected before 0.2.0 Fixed in 0.2.0 Patch available CNA
- permessage_deflate Vendorfaye Affected before 0.2.0 Fixed in 0.2.0 Patch available CNA
- websocket-driver Vendorfaye Affected 0.5.0 to before 0.9.0 Fixed in 0.9.0 Patch available CNA
- websocket-extensions Vendorfaye Affected before 0.2.0 Fixed in 0.2.0 Patch available CNA
Remediation
Upgrade permessage-deflate-ruby and permessage_deflate to 0.2.0, websocket-extensions to 0.2.0, and websocket-driver to 0.9.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA permessage-deflate-ruby (faye) Fixed in 0.2.0
- Fix · CNA permessage_deflate (faye) Fixed in 0.2.0
- Fix · CNA websocket-driver (faye) Fixed in 0.9.0
- Fix · CNA websocket-extensions (faye) Fixed in 0.2.0
Timeline
- 2026-11-30 Threatist record created from CVE-2026-140011
References
Other 4
- https://github.com/faye/permessage-deflate-ruby/security/advisories/GHSA-5qm2-87xf-x3ff
- https://github.com/faye/permessage-deflate-ruby/commit/83539816ae34c6d9724e94f6390ea9dc06dc7b13
- https://github.com/faye/websocket-driver-ruby/commit/31188c15cfbbb684f0dbd65192d95da14a6e9070
- https://github.com/faye/websocket-extensions-ruby/commit/634bb92a77388e4fc0c73a9e541d36c473fb5d82
More faye vulnerabilities
- TI-2026-96606 Decompression bomb in Faye websocket-driver via permessage-deflate CVSS 4.0HIGH 8.7
- TI-2026-101204 Crafted input in websocket-driver causes duplicate messages or crash CVSS 3.1CRITICAL 9.1
- TI-2026-101207 Pong payload triggers crash in websocket-driver CVSS 3.1HIGH 7.5
- TI-2026-101203 Denial of service in websocket-driver from malformed Sec-WebSocket-Key1 header CVSS 3.1HIGH 7.5
- TI-2026-101202 Memory exhaustion in websocket-driver buffers data sent after close CVSS 3.1HIGH 7.5
- TI-2026-101201 Memory exhaustion in websocket-driver via zero-length fragmented frames CVSS 3.1HIGH 7.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences