Osegi
Security·1 min read

ruby2ßhell: Ruby bug turns 21 ß characters into remote code execution

A new Ruby security flaw is called ruby2ßhell, and the name is not a typo. Wrong handling of the letter ß leaves projects such as GitLab and Mastodon open to attack.

A terminal window with the German letter ß highlighted in red next to a Ruby gem icon, symbolising a security vulnerability.
Image: Security

No, that is not a typo. A newly disclosed security hole in Ruby is really called ruby2ßhell, with the German letter ß in the middle, and it allows remote code execution through 21 of those characters.

The cause is that Ruby processes the ß incorrectly. That mistake is enough to make Ruby-based software attackable. Named among the affected projects are GitLab, the code hosting platform many teams run themselves, and Mastodon, the open-source social network.

What is ruby2ßhell?

It is a vulnerability in how Ruby handles the character ß. Remote code execution means an attacker can run their own commands on a vulnerable system from a distance, which is about as serious as a flaw gets. The name is a pun on "shell", the command line an attacker would want to reach.

Who is affected?

Anything built on Ruby could in principle be involved, and GitLab and Mastodon are the two examples named so far. If you run either one on your own server, it is worth checking the project's security notices and installing updates as they appear.

Further technical details were not available when this was written, so how exactly the 21 characters trigger the bug is not covered here.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:rubyruby2sshellgitlabmastodonvulnerabilityremote code execution

More from this day

See all →

More in: Security

See all →