Ruby patches Ruby2Shell flaw that can lead to RCE
Original title: Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE
PoC code demonstrates RCE for five of seven flaws; fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14.
Ruby released updates fixing seven flaws in its regular-expression engine and string case conversion. CVE-2026-132825, dubbed Ruby2Shell and scored 7.4, is a heap buffer overflow that can write one byte past the output buffer in some single-byte encodings. Veria Labs says default configurations could let unauthenticated attackers reach it through Rails or classic Sinatra. WatchTowr says reliable production exploitation is difficult and malformed requests are more likely to cause denial of service.
Unconfirmed: WatchTowr says production RCE is likely difficult; four related CVE identifiers are still unassigned, and GitHub Enterprise Server exposure is Veria Labs’ report.
- Fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14.
- Four other RCE issues have PoCs but CVE identifiers are not yet assigned.
- Chatwoot, GitLab, Mastodon, OpenProject and the Discourse base image have patched.
- Veria Labs says GitHub Enterprise Server is affected and plans a later PoC.
Impact: Possible remote code execution or denial of service
| Product | Affected | Fixed in |
|---|---|---|
| Ruby | — | 4.0.10, 3.4.13, 3.3.14 |
- 1.Upgrade Ruby to 4.0.10, 3.4.13, or 3.3.14.
- CVEs
- CVE-2026-132825
- Vendors
- Ruby
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-132825 | Heap buffer overflow in Ruby case conversion | 7.4 | — |
From the original article
2 min read at securityweek.com
Tracked as CVE-2026-132825, the bug is a heap-based buffer overflow that could lead to remote code execution (RCE). The post Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE appeared first on SecurityWeek.
By Ionut Arghire · securityweek.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.