
Ruby Patches Ruby2Shell Heap Overflow and Six Other Vulnerabilities with RCE PoCs
Ruby has released security updates addressing seven vulnerabilities in its regular expression engine and string case conversion functionality. The most severe issue, CVE-2026-132825, is a heap-based buffer overflow dubbed Ruby2Shell that can occur during case conversion in single-byte encodings such as ISO-8859-1 and Windows-1252. Proof-of-concept code demonstrating remote code execution exists for five of the flaws, including a double free, two integer overflows, and another heap-based buffer overflow. Affected applications include GitHub Enterprise Server, while Chatwoot, GitLab, Mastodon, OpenProject, and the Discourse base image have already applied patches. Exploitation in default configurations is possible via Rails and classic-style Sinatra applications, though successful attacks in production are considered challenging due to memory layout requirements, non-glibc allocators, and ASLR. Users are strongly advised to upgrade to Ruby versions 4.0.10, 3.4.13, or 3.3.14 immediately.
SecurityWeekNov 20, 2026Translated from English