Ruby2Shell (CVE-2026-132825) is a critical buffer overflow vulnerability in Ruby's string handling that allows potential remote code execution via specially crafted upcased strings. It affects all Ruby versions from 2.4.0 to current releases, impacting major frameworks including Rails, Sinatra, and Rack, plus critical self-hosted software such as GitLab, GitHub Enterprise Server, and Chatwoot.
Background
The vulnerability stems from a bug in Ruby's single-byte encoding handler where upcasing the German sharp-s character (ß) writes two output bytes without proper bounds checking. This was disclosed by Veria Labs on November 20, 2026.
- Source
- Lobsters
- Published
- Nov 19, 2026 at 06:50 PM
- Score
- 8.0 / 10