Ruby2shell lets attackers skip auth on Rails and Sinatra apps
Ruby 4.0.10, 3.4.13 and 3.3.14 fix seven memory-safety bugs in the regex engine and string case conversion, five with confirmed proof-of-concept RCE. GitHub Enterprise Server already ships one of the vulnerable versions.
Ruby released 4.0.10, 3.4.13 and 3.3.14 on 18 November, fixing seven vulnerabilities in its regular expression engine and string case-conversion code. Five of the seven have confirmed proof-of-concept exploits that reach remote code execution, including a double-free triggered by compiling a crafted regex and a heap buffer overflow in case conversion that researchers nicknamed ruby2shell.
Ruby2shell, CVE-2026-132825, is the one to check first: upcasing the German ß character in certain single-byte encodings writes one byte past a buffer, and that code path is reachable, unauthenticated, from default Rails and classic Sinatra apps. Affected versions run from 3.3.0 to 3.3.13, 3.4.0 to 3.4.12, and 4.0.0 to 4.0.9. Ruby 3.2 and earlier are already past end of life and get no fix.
Why it matters: this needs no login to trigger on a default Rails app, and GitHub Enterprise Server 3.22.5 already ships the vulnerable Ruby 4.0.9. Because GHES bundles its own Ruby runtime, patching your system Ruby won’t help there: you need GitHub’s own fix once it ships. Anyone running Ruby directly should move to 4.0.10, 3.4.13 or 3.3.14 now.
The caveat: Ruby’s own advisory gives no CVSS scores and there is no confirmed exploitation in the wild yet, only working proof-of-concept exploits.