Ruby Patches Ruby2Shell Flaw and Six Other Vulnerabilities

Summary
Ruby fixed seven vulnerabilities, including Ruby2Shell, a string case-conversion flaw that could enable RCE. Patches are available in Ruby 4.0.10, 3.4.13, and 3.3.14.
Key points
- Ruby2Shell (CVE-2026-132825, CVSS 7.4) is a heap-based buffer overflow in string case conversion that can write past the output buffer in some single-byte encodings.
- Veria Labs reports that, with default Ruby configurations, unauthenticated attackers could trigger the flaw through Rails, classic-style Sinatra, and potentially other frameworks.
- WatchTowr says production exploitation would be challenging due to memory-layout and runtime prerequisites; malformed requests could more likely cause denial of service.
- Four other Ruby vulnerabilities have PoCs demonstrating RCE; a separate PoC for an out-of-bounds read demonstrates memory corruption.
- Ruby also fixed an out-of-bounds read in its regular expression engine that could cause memory leaks and process crashes.
- Fixes for all seven vulnerabilities are in Ruby 4.0.10, 3.4.13, or 3.3.14. GitHub Enterprise Server is reported affected; Chatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have patched Ruby2Shell.
Article Details
- Vulnerability Types
- Heap-based buffer overflow
- Double free
- Integer overflow
- Out-of-bounds read
- Severity
- CVSS 7.4 for CVE-2026-132825
- Exploitation Status
- unknown
- Exploit Availability
- claimed_or_private
- Patch Status
- available
CVE
People
Products
ChatwootChatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have patched the bug.DiscourseChatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have patched the bug.GitHub Enterprise ServerAccording to Veria Labs, which plans to release a PoC after major vendors have rolled out patches, GitHub Enterprise Server is affected.GitLabChatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have patched the bug.MastodonChatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have patched the bug.OpenProjectChatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have patched the bug.RubyFresh security updates for the Ruby programming language resolve seven vulnerabilities in its regular expression engine and in the case conversion of strings.
