November 19, 2026

Ruby2Shell: critical Ruby RCE, affected versions and how to fix it (CVE-2026-132825)

TL;DR

  • Ruby2Shell (CVE-2026-132825) is a critical Ruby flaw that can let an unauthenticated attacker run code on your server. Rails and classic-style Sinatra apps are exposed by default.
  • Aikido users can click "Am I affected?" on their Aikido dashboard to check. Details are in the Aikido Intel advisory.
  • Upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10. Ruby 3.2 and older have no fix.
  • GitLab is affected, and so are GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot. Their latest releases still bundle a vulnerable Ruby. If you run one of these servers, make it private until the vendor ships a fix.
  • No attacks have been reported yet, but Ruby's maintainers know of proof-of-concept exploits and the researchers plan to publish theirs in about a week. Upgrade now.

Am I affected?

You are affected if you run Ruby 2.4.0 to 3.3.13, 3.4.0 to 3.4.12 or 4.0.0 to 4.0.9, and your application changes the case of untrusted strings in ISO-8859-x or Windows-125x encodings, for example with upcase, capitalize or swapcase. Rails and classic-style Sinatra do this in their default setup. Aikido Intel tracks this flaw as AIKIDO-2026-151885.

Aikido users can click "Am I affected?" on their Aikido dashboard to check.

Ruby series Affected Fixed in
4.0 4.0.0 to 4.0.9 4.0.10
3.4 3.4.0 to 3.4.12 3.4.13
3.3 3.3.0 to 3.3.13 3.3.14
3.2 and older All releases back to 2.4.0 End of life, no fix

Many popular self-hosted products bundle their own Ruby. As of November 19, 2026, the latest release of each still ships an affected version:

Software Latest release Bundled Ruby Status
GitLab 19.6.0 3.3.13 Affected
GitHub Enterprise Server 3.22.5 4.0.9 Affected
Mastodon 4.7.5 4.0.9 Affected
OpenProject 17.9.7 4.0.9 Affected
Discourse 2026.10.1 3.4.7 Affected
Chatwoot 4.20.0 3.4.4 Affected

How to fix

  1. Upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10 and restart your app servers. Rebuild container images and update anything that pins a Ruby version, such as Dockerfiles and .ruby-version files. Ruby lists no workaround.
  2. If you run Ruby 3.2 or older, move to a supported series. These releases get no fix.
  3. If you run self-hosted software such as GitLab, make the server private now, for example behind a VPN or an IP allowlist, and install the vendor's fixed release as soon as it ships.

What is Ruby2Shell?

Ruby2Shell is the name given to CVE-2026-132825 (GHSA-34m4-m9fh-gqp5), a critical one-byte heap overflow in how Ruby changes the case of strings in some legacy single-byte encodings, such as ISO-8859-1. The code has been in Ruby since 2.4.0, and UTF-8 strings are not affected.

Ruby fixed it in 3.3.14, 3.4.13 and 4.0.10, released on November 18, 2026 together with six other regexp and string flaws, so upgrading covers all seven. Ruby credits Stephan Lipp of Ada Logics and Anthropic with the report.

‍

‍

‍

4.7/5
Tired of false positives?

Try Aikido like 100k others.
Start Now
Get a personalized walkthrough

Trusted by 100k+ teams

Book Now
Scan your app for IDORs and real attack paths

Trusted by 100k+ teams

Start Scanning
See how AI pentests your app

Trusted by 100k+ teams

Start Testing
Authors
Sooraj Shah
Content Marketing Lead
Are you affected by Ruby2Shell?
Check now
Share:

Recently Added

November 18, 2026

PHP critical security release, 19 November (CVE-2026-129289)

PHP’s 19 November release fixes 18 CVEs, including CVE-2026-115560. Aikido Images for PHP already include the fixes.
Read more
November 18, 2026

nginx2root: Critical nginx vulnerabilities, including one RCE [CVE-2026-123007, CVE-2026-123634, CVE-2026-123633, CVE-2026-121810, CVE-2026-113425]

nginx2root is five critical nginx RCE vulnerabilities, including CVE-2026-123007 in HTTP/2. Check if you’re affected and update to nginx 1.31.9 or 1.30.7.
Read more
November 17, 2026

Java4Shell: RCE flaw in OpenJDK's Base64 decoder, with affected versions and fix (CVE-2026-114938)

Java4Shell is a flaw in OpenJDK’s Base64 decoder that can let attackers run code remotely, sometimes without authentication. Here are the affected versions, the fixed builds and how to mitigate it today.
Read more