Source: Veria Labs' Ruby2ßhell technical advisory (GHSA-34m4-m9fh-gqp5, updated November 19, 2026 at 15:29 UTC).
At the root of the bug sits an overlooked asymmetry in Ruby's Onigenc single-byte case-conversion loop (`while (*pp < end && to < to_end)`). When encountering the German sharp-s (`SHARP_s`), `ONIGENC_CASE_UPCASE` emits `'S'` immediately before writing the second `'S'` with no second bounds guard; because the allocator pads the destination buffer by 20 bytes over input length, feeding 21 `'ß'` bytes guarantees an exact one-byte write immediately past the buffer end.
Copying the converted string then performs an out-of-bounds read, giving a remote attacker an arbitrary-size heap primitive writing controlled `0x53` (`'S'`) or case-folded `0x73` (`'s'`) bytes without needing user credentials. While plain Rack apps are not exposed by default, both Ruby on Rails and classic Sinatra configurations accept legacy-encoded string paths into case operations on unauthenticated endpoints.
Enterprise exposure varies sharply by release cadence: Mastodon 4.7.6, OpenProject 17.9.8, and Discourse base image `2.0.20261119-0203` already ship patched Ruby 4.0.10, whereas GitLab 19.6.0 (Ruby 3.3.13), GitHub Enterprise Server 3.22.5 (Ruby 4.0.9), and Chatwoot 4.20.0 (Ruby 3.4.4) remain vulnerable on their latest builds. All Ruby 3.2 and older lines back to 2.4.0 are end-of-life and will not receive official backports.
A formal CVE identifier remains pending as of disclosure, and Veria Labs is withholding functional proof-of-concept exploit code for seven days to give self-hosted administrators and appliance vendors time to ship `ruby/ruby@d582f8f` patches.