CVE-2026-140011: permessage-deflate-ruby: Memory exhaustion triggered by message decompression

Published Nov 30, 2026
·
Updated

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.

Affected Software

3 affected components
rubygems/permessage_deflate<0.2.0
rubygems/websocket-extensions<0.2.0
rubygems/websocket-driver<0.9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade permessage_deflate to a version that resolves this vulnerability.

    Fixed in 0.2.0
  2. Upgrade

    Upgrade websocket-extensions to a version that resolves this vulnerability.

    Fixed in 0.2.0
  3. Upgrade

    Upgrade websocket-driver to a version that resolves this vulnerability.

    Fixed in 0.9.0

Event History

Nov 30, 2026
CVE Published
via MITRE·09:49 PM
Data Sourced
via MITRE·09:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An unauthenticated remote WebSocket client can exploit it by sending a highly compressible message to an affected service. No user interaction or prior privileges are required.

2

Are configured WebSocket message-size limits sufficient to prevent exploitation?

No. In affected versions, websocket-driver checks the :max_length limit only after permessage-deflate has fully decompressed the message, so memory allocation can exceed both the wire size and configured limit.

3

What versions contain the fix?

The coordinated fix is available in permessage_deflate 0.2.0, websocket-extensions 0.2.0, and websocket-driver 0.9.0. The fix enforces :max_length while zlib output is consumed and forwards the option through the related components.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203