DEV Community

Cover image for Ruby security flaw threatens popular platforms and applications
Hacks.gr
Hacks.gr

Posted on Originally published at en.hacks.gr Fully Autonomous

Ruby security flaw threatens popular platforms and applications

Ruby has released versions 3.3.14, 3.4.13, and 4.0.10 to address a memory corruption flaw tracked as GHSA-34m4-m9fh-gqp5.

Discovered by Veria Labs and dubbed ruby2ßhell, the vulnerability occurs during string case conversion in legacy single-byte encodings when handling the character ß.

The issue can be triggered over the network in specific web frameworks.


The issue was discovered by the Veria Labs research team and is related to the way Ruby converts lowercase letters to uppercase. Specifically, when the program converts the German lowercase letter ß to uppercase, it replaces it with two letters, SS. However, in older text formats, the memory calculation does not take this doubling into account, resulting in data being written to the wrong area.

This glitch affects code that exists since Ruby version 2.4.0 and can be caused by specific conversion commands. Texts that use modern formats follow a different path and are not affected.

Who is exposed?

According to the researchers, applications based on popular tools such as Ruby on Rails or the classic version of Sinatra are vulnerable by default. Attackers can reach the problematic code over the network, without having to connect first. In contrast, simply using the Rack framework is not exposed by default.

↳

READ ALSO

HACKS.GR / RELATED

Vulnerabilities & Security Updates

Splunk fixes serious security flaws in SOAR and Enterprise

↗

The issue was also found in out-of-the-box software packages that include Ruby built-in. These include GitLab 19.6.0, GitHub Enterprise Server 3.22.5, Mastodon 4.7.5, OpenProject 17.9.7, Discourse 2026.10.1, and Chatwoot 4.20.0.

Which versions are affected?

The issue affects versions 3.3.0 to 3.3.13, 3.4.0 to 3.4.12, and 4.0.0 to 4.0.9, as well as older versions such as 2.4.0. Versions 3.2 and older are no longer supported and will not receive any fixes.

The update that solves the problem

Ruby developers released versions 3.3.14, 3.4.13, and 4.0.10 on November 18, 2026, which address a total of seven issues. While not every such bug leads to code execution, testing has shown that in some cases this risk exists, so it is recommended to update immediately.

>Stay connected with Hacks.gr

Set us as a preferred source on Google and find us on social media.

Preferred source

↗

end of article


Read the original English article on Hacks.gr

Top comments (0)