All vulnerabilities

RubyGems

CVE-2026-140011

permessage-deflate-ruby: Memory exhaustion triggered by message decompression

Severity
High 7.5
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
0.2.0, 0.9.0
Exploit chance
0.6% in the next 30 daysHigher than 52% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
Decompression bomb (CWE-409)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-5qm2-87xf-x3ff
Sources
OSV.dev and GitHub

Description

An unauthenticated remote client can cause a server to allocate memory with a much larger size than the message sent over the wire, potentially bypassing configured message size limits. This may cause the server to run out of memory and crash.

[permessage-deflate][pmd-ruby] is used to add support for [compression extensions][pmd] to [websocket-driver][wd-ruby], [faye-websocket][fw-ruby] and other libraries based on these packages. A client with this extension activated can compress a very large message consisting of one byte repeated many times to around 1/1,000 of its original size before sending it to the server. Upon receiving such a message, the server will decompress it, and thereby allocate a buffer 1,000 times larger than the received WebSocket frame. The client may abuse this to cause the server to allocate such much that it runs out of memory and crashes.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
permessage_deflateRubyGems · osv:RubyGems:permessage_deflate
  • Every version before 0.2.0
websocket-driverRubyGems · osv:RubyGems:websocket-driver
  • From 0.5.0 before 0.9.0
websocket-extensionsRubyGems · osv:RubyGems:websocket-extensions
  • Every version before 0.2.0

About permessage_deflate

Total downloads (RubyGems)
1,642,759RubyGems, 1 Dec 2026

This is the only vulnerability in permessage_deflate in our list.

About websocket-driver

Total downloads (RubyGems)
676,486,777RubyGems, 1 Dec 2026

Vulnerabilities in websocket-driver

In our list
3
Published in the last 12 months
3
Critical, last 12 months
1
High, last 12 months
2
Known exploited
0
Search the list for websocket-driver

About websocket-extensions

Total downloads (RubyGems)
623,270,279RubyGems, 1 Dec 2026

This is the only vulnerability in websocket-extensions in our list.

References