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.
Many popular self-hosted products bundle their own Ruby. As of November 19, 2026, the latest release of each still ships an affected version:
How to fix
- 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.
- If you run Ruby 3.2 or older, move to a supported series. These releases get no fix.
- 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.



