November 20, 2026 / news

Ruby 4.0.10, 3.4.13 and 3.3.14 Patch Seven Regexp and String Flaws, Including Pre-Auth Ruby2Shell (CVE-2026-132825)

Ruby shipped 4.0.10, 3.4.13 and 3.3.14 to fix seven memory-safety flaws in its Regexp engine and string case conversion, several with RCE PoCs; Veria Labs shows the worst, CVE-2026-132825, is reachable pre-auth in default Rails.

Title: Seven Ruby Memory-Safety Flaws Get Fixes, and the Worst One Is Reachable Without Authentication in Default Rails Apps

Summary: Ruby 4.0.10, 3.4.13 and 3.3.14 came out on November 18, 2026, closing seven memory-safety issues across the language’s regexp engine and its string case-conversion code; the maintainers note working PoCs for several of the flaws that demonstrate remote code execution. Releases from 3.3.13 back, every 3.4 build up to 3.4.12 and every 4.0 build up to 4.0.9 are in scope, while 3.2 and older are past end of life and go unpatched. The severity split is three critical, three high and one moderate. The worst issue, CVE-2026-132825 (GHSA-34m4-m9fh-gqp5), is a one-byte heap overflow reached when Ruby case-converts a crafted string encoded in ISO-8859-1, Windows-1252 or another single-byte charset; the faulty loop has been in the code since Ruby 2.4.0. In research published November 19 under the name Ruby2Shell, Veria Labs reports that stock-configuration Rails and classic Sinatra setups can be driven into this code by an unauthenticated network request. A same-day analysis by Moritz Sanft traces how: while parsing a crafted form submission, Rack case-converts a request field during its routine processing, so even a brand-new Rails app executes the vulnerable code before its own application code ever runs. Veria Labs withholds its RCE proof of concept until November 25, 2026 — possibly later if large vendors are still missing patches. Software that vendors its own Ruby runtime is on separate schedules: GitHub Enterprise Server 3.22.5 and older has no patched release yet, while GitLab 19.6.1/19.5.8/19.4.10, Mastodon 4.7.6/4.6.12/4.5.22/4.4.29, Chatwoot 4.20.1, OpenProject 17.9.8/17.8.3 and the Discourse base image 2.0.20261119-0203 have all shipped fixes. The remaining critical pair, GHSA-7x2q-68qv-6p8x (double free) and GHSA-3p8q-wmhx-vm2w (heap overflow), both carrying RCE PoCs, sit in regexp compilation — only applications that compile patterns built from attacker input are exposed to them. Stephan Lipp of Ada Logics and Anthropic, baba__yaga, aphantom, Hiroya Fujinami and Hiroshi SHIBATA are credited with the findings; per the project, no real-world exploitation has been observed so far. Because the patches land in the interpreter itself, refreshing gems achieves nothing — the Ruby on application servers, background workers and container images must be upgraded and then restarted or rebuilt, and until the other six issues receive CVE identifiers, scanners should track them by their GHSA IDs.

References:

← All news