---
title: Ruby2Shell (CVE-2026-132825) is reachable before login in default Rails and classic Sinatra apps; GitLab ships a critical patch, GitHub Enterprise Server has no fix yet, and a public RCE PoC is due Nov 25 | ctxsec
url: https://ctxsec.com/items/ruby2shell-cve-2026-132825-pre-auth-default-rails-sinatra-gitlab-critical-patch-19-6-1-ghes-no-fix-poc-nov-25
description: "The Ruby string case-conversion heap overflow fixed in Ruby 3.3.14, 3.4.13 and 4.0.10 now has a CVE and a name. Veria Labs says Rack's MethodOverride middleware upcases the _method field of a POST before routing, so a multipart request declaring a legacy charset (e.g. ISO-8859-1) with 21 or more '\u00df' characters reaches the one-byte overflow in default Rails and classic-style Sinatra apps without authentication. Ruby says it knows of PoCs that achieve RCE in some scenarios. GitLab released 19.6.1, 19.5.8 and 19.4.10 on Nov 20 as a critical patch (GitLab.com and Dedicated already patched). Veria lists Mastodon, OpenProject, Chatwoot and Discourse as patched and GitHub Enterprise Server 3.22.5 and earlier as still vulnerable. Veria says it will publish a stock-Rails RCE PoC on Nov 25 or later."
status: "official (Ruby GHSA-34m4-m9fh-gqp5, GitLab critical patch release and Red Hat RHSB-2026-021, Nov 19-20, 2026); framework reachability and vendor status per Veria Labs, the finder of record for the name"
published: 2026-11-20
---

> The Ruby string case-conversion heap overflow fixed in Ruby 3.3.14, 3.4.13 and 4.0.10 now has a CVE and a name. Veria Labs says Rack's MethodOverride middleware upcases the _method field of a POST before routing, so a multipart request declaring a legacy charset (e.g. ISO-8859-1) with 21 or more 'ß' characters reaches the one-byte overflow in default Rails and classic-style Sinatra apps without authentication. Ruby says it knows of PoCs that achieve RCE in some scenarios. GitLab released 19.6.1, 19.5.8 and 19.4.10 on Nov 20 as a critical patch (GitLab.com and Dedicated already patched). Veria lists Mastodon, OpenProject, Chatwoot and Discourse as patched and GitHub Enterprise Server 3.22.5 and earlier as still vulnerable. Veria says it will publish a stock-Rails RCE PoC on Nov 25 or later.

[← Cybersecurity News](/news) · [markdown](/items/ruby2shell-cve-2026-132825-pre-auth-default-rails-sinatra-gitlab-critical-patch-19-6-1-ghes-no-fix-poc-nov-25.md)

official (Ruby GHSA-34m4-m9fh-gqp5, GitLab critical patch release and Red Hat RHSB-2026-021, Nov 19-20, 2026); framework reachability and vendor status per Veria Labs, the finder of record for the name

2026-11-20 · published here

2026-11-21 7:49 AM ET

### Ruby2Shell (CVE-2026-132825) is reachable before login in default Rails and classic Sinatra apps; GitLab ships a critical patch, GitHub Enterprise Server has no fix yet, and a public RCE PoC is due Nov 25

- **Patch order:** internet-facing Rails/Sinatra apps and self-hosted GitLab first. Restart every Ruby process (Puma, Sidekiq workers) and rebuild container images; self-compiled GitLab needs Ruby rebuilt.
- **Not exploited yet:** no in-the-wild exploitation was reported at publication; expect scanning once the PoC is out.
- **Ruby 3.2 and older** are end of life and won't be fixed. Distro packages may backport without a version bump, so check the package release.
- See the [Ruby2Shell 72-hour playbook](/playbooks/ruby2shell-bundled-ruby-72h) and our [Nov 18 Ruby release item](/items/ruby-4-0-10-3-4-13-3-3-14-seven-regexp-string-case-conversion-vulns-rce-poc-nov-18).

Sources: [ruby/ruby GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings (Nov 19, 2026)](https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5) · [GitLab Critical Patch Release: 19.6.1, 19.5.8, 19.4.10 (Nov 20, 2026)](https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-6-1-released/) · [Veria Labs: Ruby2Shell (CVE-2026-132825), affected software table (updated Nov 21, 2026 03:52 UTC)](https://verialabs.com/ruby2shell/) · [Red Hat RHSB-2026-021: One-byte heap overflow - ruby (CVE-2026-132825) "ruby2shell" (Nov 20, 2026)](https://access.redhat.com/security/vulnerabilities/RHSB-2026-021) · [Cloudflare: How Cloudflare WAF protects against ruby2shell (CVE-2026-132825) (Nov 20, 2026)](https://blog.cloudflare.com/ruby2shell-waf-protection/) · [Mastodon v4.7.6 release notes (Ruby update in container images)](https://github.com/mastodon/mastodon/releases/tag/v4.7.6)
