# Ruby2ßhell: Pre\-authentication RCE on stock Rails

- HackerByte page: <https://hackerbyte.net/en/stories/a-security-vulnerability-in-the-stock-installation-of-the-rails-framework-that-a-50556287>
- Original source: <https://verialabs.com/ruby2shell/>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50556287>
- Submitted to Hacker News: 2026-11-19T05:09:11.000Z

A security vulnerability in the stock installation of the Rails framework that allows for pre\-authentication remote code execution.

## AI-generated summary

A critical vulnerability dubbed Ruby2ßhell has been discovered in multiple Ruby versions, allowing pre\-authentication Remote Code Execution \(RCE\). The bug stems from an out\-of\-bounds write when upcasing a specific character \(ß\) in certain single\-byte encodings. This vulnerability affects various popular self\-hosted software like GitLab and GitHub Enterprise Server that bundle affected Ruby versions, alongside Ruby on Rails itself.

## Key points

- Pre\-authentication RCE vulnerability in Ruby versions 4.0, 3.4, and 3.3.
- Root cause is an out\-of\-bounds write due to improper handling of the 'ß' character during string upcasing.
- Affects frameworks like Ruby on Rails, Sinatra \(classic\), and self\-hosted software like GitLab and GitHub Enterprise Server.
- Fixed in Ruby 4.0.10, 3.4.13, and 3.3.14.
- Proof of concept will be released in a week.
