permessage-deflate-ruby provides the per-message DEFLATE compression extension for WebSocket connections. Prior to permessagedeflate 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 :maxlength 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 :maxlength while consuming zlib output and forwards the option through websocket-extensions and websocket-driver. This issue is fixed in permessagedeflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0.
permessage-deflate-ruby provides the per-message DEFLATE compression extension for WebSocket connections. Prior to permessagedeflate 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 :maxlength 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 :maxlength while consuming zlib output and forwards the option through websocket-extensions and websocket-driver. This issue is fixed in permessagedeflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0.
Faye websocket-driver 0.5.0 before 0.8.0, permessage-deflate before 0.2.0, and websocket-extensions before 0.2.0 contain a decompression bomb vulnerability because messages are fully inflated before maxLength is enforced. Unauthenticated remote clients negotiating permessage-deflate can send highly compressible messages, forcing processIncomingMessage() to allocate excessive memory and crash the server process.