CVE Tools

Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE

SecurityWeekBy Ionut Arghire

Our summary

Ruby's maintainers have released new builds closing seven security holes in the language's regex engine and string case-handling code, and researchers have already built working remote-code-execution demonstrations for five of them. The headline issue, nicknamed Ruby2Shell and tracked as CVE-2026-132825 (CVSS 7.4), is a heap buffer overflow triggered when certain single-byte encodings like ISO-8859-1 or Windows-1252 convert characters such as the German ß to uppercase, writing an extra byte past the allocated buffer. Security firms Veria Labs and WatchTowr warn that unauthenticated attackers could reach this code path through Rails or Sinatra apps, though WatchTowr's Yordan Ganchev cautions that reliable exploitation would require specific memory allocators, runtime settings, and bypassing ASLR, making denial-of-service a more realistic outcome than full RCE. GitHub Enterprise Server is reportedly still exposed, while GitLab, Chatwoot, Mastodon, OpenProject, and Discourse have already shipped fixes; the remaining bugs—two integer overflows, a double free, and out-of-bounds reads—await CVE assignment. Everyone running Ruby is urged to upgrade promptly to version 4.0.10, 3.4.13, or 3.3.14.

Read at SecurityWeek

SecurityWeek publishes this story on its own site; we link to it rather than reprint it.

Worried this affects your company?

Discuss a security assessment of your internet-facing systems. Scope agreed before testing.

Check my exposure