Vulnerabilities · 9 days ago

Ruby fixes seven flaws as PoCs show code-execution potential

Ruby maintainers released fixes for seven vulnerabilities in regular-expression handling and string case conversion. SecurityWeek reports proof-of-concept (PoC) code showing remote code execution for five; CSIRT Italia says six have PoCs showing code execution or memory corruption. The fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14; neither report describes active attacks.

The headline flaw, Ruby2Shell (CVE-2026-132825), is a heap-based buffer overflow. In some single-byte encodings, uppercasing ß turns one character into “SS”: Ruby reserves space for one byte but writes two, potentially corrupting nearby memory. An application is exposed to this path when it case-converts attacker-controlled text; code execution is possible in specific scenarios. WatchTowr says production exploitation is difficult, and malformed requests may instead disrupt service.

A Ruby inventory alone does not establish exposure: if an internet-facing Rails, classic Sinatra or other Ruby app case-converts untrusted text in a single-byte encoding, its application logic matters. SecurityWeek says GitHub Enterprise Server is affected, while Chatwoot, GitLab, Mastodon, OpenProject and Discourse have patched Ruby2Shell.

Exploitability hinges on applications case-converting attacker-controlled single-byte text, so Ruby use alone does not establish exposure.

Timeline

Sources

7 sources covering this story

Part of the PlainSec briefing for 2026-11-24

Editions

Related stories