← All stories
● Covered by 4 sources · 5 reportsHigh impact2 negative3 neutral

Ruby Patches Seven Vulnerabilities, Including RCE Flaws in Regexp and String Case Conversion

🔄 Updated 1d ago — new reporting from SecurityWeek, Cloudflare Blog
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Seven memory-safety vulnerabilities found in Ruby's Regexp engine and string case conversion.
  • Five flaws have proof-of-concept exploits for remote code execution (RCE).
  • One critical RCE is a one-byte heap overflow in string upcasing, affecting Ruby since 2.4.0.
  • Another RCE is a double free in regular expression compilation.
  • Patched versions 4.0.10, 3.4.13, and 3.3.14 have been released; upgrade is recommended.
  • The critical RCE is tracked as CVE-2026-132825 with a CVSS score of 7.4.
  • The one-byte heap overflow occurs when converting characters like 'ß' to 'SS' in single-byte encodings.
  • Veria Labs reported that default Ruby configurations in Rails and Sinatra are vulnerable.
  • Self-hosted products like GitLab, Mastodon, and GitHub Enterprise Server are affected.
  • Cloudflare WAF blocks ruby2shell exploits with two new rules.
  • GHSA-87fm-7w84-j2px, an integer overflow, was also fixed in the same releases.

Critical Security Updates for Ruby

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.

Remote Code Execution Vulnerabilities Identified

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.

Other Vulnerabilities and Impact

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.

Technical Details of the Heap Overflow

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.

Remediation

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.

Updates

🕒 2026-11-20 · new reporting from SecurityWeek, Cloudflare Blog
  • The critical RCE is tracked as CVE-2026-132825 with a CVSS score of 7.4.
  • The one-byte heap overflow occurs when converting characters like 'ß' to 'SS' in single-byte encodings.
  • Veria Labs reported that default Ruby configurations in Rails and Sinatra are vulnerable.
  • Self-hosted products like GitLab, Mastodon, and GitHub Enterprise Server are affected.
  • Cloudflare WAF blocks ruby2shell exploits with two new rules.
  • GHSA-87fm-7w84-j2px, an integer overflow, was also fixed in the same releases.

✨ 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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 21

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

How outlets covered it

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.