Ruby2Shell: heap buffer overflow in Ruby string case conversion (CVE-2026-132825) fixed in 4.0.10, 3.4.13 and 3.3.14
Published 20/11/2026 03:54 · Updated 20/11/2026 04:34 (revision 2)
Timeline
5 events over 17 h
- 19/11/2026 10:42First report+16 h
- 20/11/2026 02:57Corroboratedoss-security mailing list+57 min
- 20/11/2026 03:54Published on WatchtowerPro CISO+4 min
- 20/11/2026 03:59Confirmedruby-lang.org+35 min
- 20/11/2026 04:34UpdatedThe Ruby project's own advisory (ruby-lang.org) now confirms seven flaws in the regexp…
In short
Ruby has released 4.0.10, 3.4.13 and 3.3.14 to fix seven flaws in its regular expression engine and in string case conversion. One of them, a one-byte heap buffer overflow in string case conversion, is nicknamed Ruby2Shell by the security vendor Aikido and in third-party issues. GreyNoise reports a public exploit for CVE-2026-132825 (29/11/2026).
How bad is it
Critical. An attacker who can make a vulnerable Ruby application change the case of text they control may be able to run their own code on the server, according to proofs of concept the Ruby project says it knows of.
Confirmed by the vendor or a CERT - no exploitation reported yet.
Severity score
CVSS 3.1 from NVD, from mitre.org, read 29/11/2026.
What an attacker needs
- Internet access to itLocal access needed
- A loginNot needed
- A user to clickNo
- Special settingsUsually yes
Red helps the attacker, blue holds them back, grey is not published yet.
If it works, an attacker can
- Read the data it holds
- Change or delete that data
- Take it offline
Type: memory corruption.
A score is the worst case for the flaw, not a verdict on any one system. How we score · ReconX customers see which of their own systems are affected.
Affected versions
- Ruby 3.3.13 and earlier (the Ruby advisory says Ruby 3.2 and earlier are end of life and will not receive the fixes)
- Ruby 3.4.0 through 3.4.12
- Ruby 4.0.0 through 4.0.9
- The case-conversion overflow is triggered in single-byte encodings such as ISO-8859-1 and Windows-1252.
Fixed in
- 4.0 branch: 4.0.10
- 3.4 branch: 3.4.13
- 3.3 branch: 3.3.14
What to do now
- Upgrade Ruby to 4.0.10, 3.4.13 or 3.3.14, as the Ruby advisory strongly recommends.
- Move any Ruby 3.2 or older deployment to a supported branch, because it will not receive this fix.
- Check Ruby versions bundled in container images and self-hosted products, not only the system Ruby.
- No workaround was found in the sources read, so updating is the only measure identified.
ReconX customers see the full notice - and their own systems
Our customers are alerted at every phase. Until a patch exists, the ReconX agent watches their servers from the inside for anomalies, and our outside view - the attacker's view - shows which systems to fix first.
In ReconX: the full analysis, 5 open questions, followed up as sources answer, all 5 sources with their dates and every revision. And technology matching: which of your systems run Ruby, at which version, fixed or not - and what each one needs.
Main sources
Ruby2Shell: critical Ruby RCE, affected versions and how to fix it (CVE-2026-132825) Research · Re: Ruby: multiple vulnerabilities in Regexp and String case conversion Research · CVE Record: CVE-2026-132825 Research