Ruby security releases fix seven Regexp and String case conversion flaws, five with proof-of-concept RCE
TLDR
- Ruby 4.0.10, 3.4.13 and 3.3.14 fix seven Regexp and String flaws; maintainers say five have proof-of-concept RCE.12
- Ruby 3.2 and earlier are end of life and get no fix, and no workaround is published.26
- Veria Labs says the ruby2ßhell flaw is reachable without authentication in default Rails; it plans a PoC on 25 November.7
Ruby's maintainers have released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix seven vulnerabilities in the language's regular expression engine and in string case conversion, and say they are aware of proof-of-concept exploits (PoCs) showing some of them can be used to trigger remote code execution (RCE).2 The Hacker News counts five flaws with RCE PoCs, one with a PoC showing attacker-controlled memory corruption that is not shown to run code, and one that can only read memory or crash the program, and reports that the advisories record no attacks so far.1 The announcement is dated 18 November 2026, its history line says it was originally published at 00:00 UTC on 19 November, and the GitHub advisories carry 19 November dates.245 Affected versions are Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12 and 4.0.0 through 4.0.9, and Ruby 3.2 and earlier are end of life and will not receive the fixes.2 With 3.3.14 the project renamed the Ruby 3.3 phase from security maintenance to legacy maintenance, and official support is still scheduled to end at the end of March 2027.3
The advisory names five flaws that can be used to trigger RCE in some scenarios: GHSA-34m4-m9fh-gqp5, a one-byte heap overflow in string case conversion; GHSA-87fm-7w84-j2px, an integer overflow in case conversion that causes a heap overflow; GHSA-7x2q-68qv-6p8x, a double free in regular expression compilation; GHSA-3p8q-wmhx-vm2w, a heap overflow in regular expression compilation; and GHSA-7whj-cfh7-xgm4, a heap overflow in Regexp#to_s.2 GHSA-wpqw-5qxg-m68r, an out-of-bounds read in case-insensitive matching, has a PoC showing attacker-controlled memory corruption, and GHSA-pvgc-g7gj-pv6h, an out-of-bounds read in case-insensitive backreference matching, may disclose memory contents or crash the process.25 The Hacker News reports that the advisories rate GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x and GHSA-3p8q-wmhx-vm2w critical, GHSA-87fm-7w84-j2px, GHSA-7whj-cfh7-xgm4 and GHSA-wpqw-5qxg-m68r high, and GHSA-pvgc-g7gj-pv6h moderate, and that the result size GHSA-87fm-7w84-j2px needs puts it out of reach for most requests.1 Four of the findings are credited to Stephan Lipp of Ada Logics and Anthropic, the others to baba__yaga, aphantom, Hiroya Fujinami and Hiroshi SHIBATA.2
The Ruby advisory says CVE identifiers have been requested but not assigned, and the GitHub pages for GHSA-34m4-m9fh-gqp5 and GHSA-wpqw-5qxg-m68r each say a CVE ID has been requested and is pending.245 Veria Labs, Beazley Security and OX Security instead tie CVE-2026-132825 to GHSA-34m4-m9fh-gqp5, and Beazley says most of the other flaws had no CVE ID at the time of writing.7910 OX Security rates CVE-2026-132825 7.4 (High), while The Hacker News says the advisories rate the underlying flaw critical.110 Veria Labs, which named the flaw ruby2ßhell, says the loop sizes the output buffer at the input length plus 20 bytes, so an input of 21 ß characters in an affected single-byte encoding overflows it by one byte, UTF-8 strings are not affected, and Rails and classic-style Sinatra are reachable without authentication in their default configuration.78 The Hacker News says the regex flaws need an application that builds a pattern from attacker-controlled input, that the case conversion flaws do not involve regular expressions, and that updating gems or a framework does not replace a vulnerable interpreter.1 Ruby Central says the advisory lists no workaround and that anyone whose Ruby comes from a Linux distribution, container image or hosting platform should watch for an updated package or image, then rebuild and redeploy.6
Beazley Security reports no exploitation in the wild, says heap corruption bugs are non-trivial to exploit and often cause crashes instead of code execution, and still recommends fixing as soon as possible given the unauthenticated reach in default Rails and the planned public PoC.9 OX Security calls ruby2ßhell "more marketing than actual risk", citing no reported exploitation, no weaponised exploit and narrow preconditions, and advises patching at a reasonable pace.10 Veria Labs says it will publish an RCE PoC on stock Rails on 25 November 2026, or later if major vendors have not shipped a fix by then.7 As of its page update on 20 November, Veria Labs lists no fixed release for GitLab (19.6.0 and earlier), GitHub Enterprise Server (3.22.5 and earlier) or Chatwoot (4.20.0 and earlier), and lists fixes for Mastodon (4.7.6, 4.6.12, 4.5.22 and 4.4.29), OpenProject (17.9.8 and 17.8.3) and the Discourse base image (2.0.20261119-0203).7 The Hacker News notes that the new advisories do not say GitLab or any other named product can be attacked through them, and that the flaws are different from the Ruby regular expression bugs fixed on 23 October in Ruby 4.0.9, 3.4.12 and 3.3.13.1
Why it matters: the fixes are in the Ruby interpreter itself, so The Hacker News says an application is only protected once the Ruby running on its servers, workers and container images is updated and restarted or rebuilt.1
Sources
- Ruby Releases Fixes for 7 Regex and String Flaws, Warns 5 Have Proof-of-Concept RCE (The Hacker News)
- Security advisories: multiple vulnerabilities in Regexp and String case conversion (Ruby)
- Ruby 3.3.14 Released (Ruby)
- Heap buffer overflow in case conversion of strings (GHSA-34m4-m9fh-gqp5) (Ruby (GitHub Security Advisory))
- Out-of-bounds read in case-insensitive regular expression matching (GHSA-wpqw-5qxg-m68r) (Ruby (GitHub Security Advisory))
- Ruby Security Releases: Upgrade to 4.0.10, 3.4.13, or 3.3.14 (Ruby Central)
- Ruby2Shell (CVE-2026-132825) (Veria Labs)
- ruby2ßhell: Remote code execution through 21 ß characters (heise online)
- Ruby2ßhell: Critical Remote Code Execution Vulnerability in Ruby (CVE-2026-132825) (Beazley Security)
- Ruby2Shell (CVE-2026-132825): Real RCE Risk or Just Hype? (OX Security)