Critical Ruby2Shell flaw lets attackers run code on Rails apps; upgrade Ruby to fix

A newly disclosed vulnerability in Ruby, dubbed Ruby2Shell and tracked as CVE-2026-132825, is a one-byte heap overflow in how Ruby changes the case of strings in legacy single-byte encodings. Researchers at Veria Labs say it can be exploited over the network without authentication on a default Rails app, and rate it critical. Apps running Ruby 2.4.0 through 3.3.13, 3.4.0 through 3.4.12, or 4.0.0 through 4.0.9 are affected, and the fix is upgrading Ruby to 3.3.14, 3.4.13, or 4.0.10 rather than updating gems. Ruby 3.2 and earlier versions will not receive a patch, and Veria plans to publish an exploit on November 25, 2026 if major vendors have not yet released fixes. Operators should check the Ruby version in their production environments and rebuild and restart services after upgrading.
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