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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-30T21:49:47.573Z
- Modified: 2026-12-01T20:19:00.483Z
- Also known as: GHSA-5qm2-87xf-x3ff
- Weaknesses: CWE-409
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- 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
- permessage_deflate (RubyGems): before 0.2.0
- websocket-extensions (RubyGems): before 0.2.0
- websocket-driver (RubyGems): from 0.5.0 before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/faye/permessage-deflate-ruby/security/advisories/GHSA-5qm2-87xf-x3ff> (exploit, web)
- <https://github.com/faye/permessage-deflate-ruby/commit/83539816ae34c6d9724e94f6390ea9dc06dc7b13> (web)
- <https://github.com/faye/websocket-driver-ruby/commit/31188c15cfbbb684f0dbd65192d95da14a6e9070> (web)
- <https://github.com/faye/websocket-extensions-ruby/commit/634bb92a77388e4fc0c73a9e541d36c473fb5d82> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140011> (advisory)
- <https://github.com/faye/permessage-deflate-ruby> (package)

## Sources

- CVE List: [CVE-2026-140011](https://www.cve.org/CVERecord?id=CVE-2026-140011), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-5qm2-87xf-x3ff](https://github.com/advisories/GHSA-5qm2-87xf-x3ff), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-140011](https://nvd.nist.gov/vuln/detail/CVE-2026-140011), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140011 · Whole record: https://cve.day/CVE-2026-140011.json · Rebuilt by cve.day 2026-12-01T20:32:59.041Z
