The Ruby programming language has fixed seven memory-safety flaws, and one of them already has a nickname: Ruby2Shell. Security firm watchTowr told Cyber Daily it expects attackers to start scanning for it within days.

The bug

Tracked as CVE-2026-132825, Ruby2Shell is a one-byte heap buffer overflow in the code that converts text to upper or lower case. The Ruby team says changing the case of a crafted string may allow remote code execution, and that it knows of proof-of-concept exploits that achieve this “in some scenarios”.

watchTowr’s Yordan Ganchev told Cyber Daily the bug is triggered by case changes on text in older encodings such as ISO-8859-1 and Windows-1252, not everyday UTF-8. He described a reliable, universal exploit as a “complete odyssey”, but warned that malformed requests could still crash services.

Who is affected

Ruby branchVulnerableFixed in
4.04.0.0 to 4.0.94.0.10
3.43.4.0 to 3.4.123.4.13
3.33.3.13 and earlier3.3.14

Ruby 3.2 and older are end-of-life and will not be fixed. Cyber Daily reports the bug has probably reached self-hosted products that bundle Ruby, including GitLab, GitHub Enterprise Server, Mastodon and OpenProject. watchTowr named Ruby on Rails, Sinatra and Hanami apps as likely targets.

The Ruby advisory credits Stephan Lipp of Ada Logics and Anthropic with finding Ruby2Shell and three of the other flaws.

What to do

  • Update Ruby to 4.0.10, 3.4.13 or 3.3.14, and apply vendor updates for products that bundle it.
  • Move off Ruby 3.2 or older.
  • Cloudflare says it has added blocking rules for the flaw to its managed WAF rulesets, including the free one. That can buy time, but it is not a substitute for patching.