Ruby2Shell: Critical Ruby flaw enables unauthenticated RCE in Rails APIs

A one-byte heap overflow in Ruby's string case conversion, dubbed Ruby2Shell, has been tracked as CVE-2026-132825 and GHSA-34m4-m9fh-gqp5. Researchers say it is reachable without authentication in a plain Rails app, and affects Ruby 2.4.0 through 3.3.13, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9. The bug stems from legacy single-byte encodings where the German sharp s expands to two bytes on uppercase, and the fix is upgrading Ruby to 3.3.14, 3.4.13, or 4.0.10 rather than updating gems. Ruby versions 3.2 and earlier receive no patch, and Veria Labs plans to publish a proof-of-concept exploit on November 25, 2026 unless vendors release fixes first. Users are advised to check the Ruby version running in production environments, not just local machines.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in