Ruby has released urgent security updates, with versions 4.0.10, 3.4.13, and 3.3.14 now available. These releases address a total of seven memory-safety vulnerabilities found within Ruby's regular expression engine and its string case conversion functionalities. Maintainers strongly recommend upgrading to these patched versions.
Five of the seven discovered vulnerabilities have proof-of-concept (PoC) exploits that demonstrate remote code execution (RCE). One critical flaw, identified as GHSA-34m4-m9fh-gqp5, is a one-byte heap overflow occurring during string case conversion. This specific vulnerability, dubbed "Ruby2ßhell," can be triggered by upcasing certain characters like 'ß' in single-byte encodings and has been present since Ruby 2.4.0. It can lead to RCE in some scenarios, including default configurations of Ruby on Rails.
Another significant RCE vulnerability, GHSA-7x2q-68qv-6p8x, is a double free issue in Ruby's regular expression engine. This flaw allows RCE in applications that compile attacker-controlled regular expression patterns.
The remaining two vulnerabilities are less severe; one can corrupt memory under attacker control but has not been shown to run code, while the other can only read unauthorized memory or crash the program. The advisories rate three flaws as critical, three as high, and one as moderate.
Applications are at risk if they process crafted patterns or strings from untrusted sources. While PoCs exist for several flaws, no active attacks have been reported by the maintainers.
The one-byte heap overflow in string case conversion occurs because most of Ruby's single-byte encodings do not have a capital 'ß'. When 'ß' is upcased, it writes two bytes ('SS'), but the loop performing the conversion only bounds-checks for one byte. An input containing 21 instances of 'ß' can overflow the buffer by one byte. This issue affects `upcase`, `swapcase`, `downcase(:fold)`, and `casecmp?` functions in various ISO-8859 and Windows-125x encodings. UTF-8 strings are not affected as they follow a different code path.
Users are strongly advised to upgrade their Ruby installations to the newly released versions: Ruby 4.0.10, 3.4.13, or 3.3.14. These updates contain the necessary fixes to mitigate all identified vulnerabilities.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Cloudflare's Web Application Firewall (WAF) now blocks exploits targeting ruby2shell (CVE-2026-132825), a critical heap buffer overflow vulnerability in Ruby's string case conversion. This vulnerability, which can lead to remote code execution, affects Ruby on Rails, Sinatra, and self-hosted products like GitLab and Mastodon, necessitating Ruby upgrades to versions 3.3.14, 3.4.13, or 4.0.10 for a complete fix.
Ruby has released security updates addressing seven vulnerabilities, including the Ruby2Shell flaw (CVE-2026-132825), a heap-based buffer overflow that could lead to remote code execution (RCE) in specific scenarios. Five of the patched vulnerabilities have public proof-of-concept (PoC) code demonstrating RCE, affecting applications that process external text with case conversion in single-byte encodings.
Ruby has released patched versions 4.0.10, 3.4.13, and 3.3.14 to address seven memory-safety flaws in its regular expression engine and string case-conversion code. Five of these vulnerabilities have proof-of-concept exploits demonstrating remote code execution, while the remaining two can lead to memory corruption or program crashes. Applications are at risk if attackers can inject crafted patterns or strings into the affected Ruby code.
A pre-authentication remote code execution (RCE) vulnerability, dubbed "Ruby2ßhell," has been found in default configurations of Ruby on Rails frameworks. The flaw stems from a one-byte heap overflow in Ruby's single-byte encoding upcasing functions, which can be triggered by specific characters like 'ß'. This vulnerability affects Ruby versions since 2.4.0 and allows an attacker to write a controlled byte out of bounds.
Seven vulnerabilities have been found in Ruby's regular expression engine and string case conversion, including heap buffer overflows, double free, and integer overflow issues. Proofs of concept exist demonstrating that some of these flaws can lead to remote code execution. Ruby versions 4.0.10, 3.4.13, and 3.3.14 have been released to address these critical security issues.