Ruby2Shell can let an outsider run code on a Rails server without signing in
Ruby2Shell can let a visitor run code on a Rails or classic Sinatra server before login. Install your vendor’s fix or update Ruby to 3.3.14, 3.4.13 or 4.0.10. AWS has patched Lambda Ruby ZIP functions in Auto mode. Other deployments need an administrator to check.
The full story: Ruby2Shell: five Ruby regex and string flaws, some with public exploit code
If your family uses a hosted service, its operator handles the fix. If your family office runs an affected app, ask its administrator to install the vendor’s security update or upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10 and restart the app and its workers. On AWS Lambda, managed Ruby ZIP functions in Auto mode are already patched. For other ZIP functions, ask the administrator to update the runtime, including any copy of Ruby they supply, and for containers, to rebuild and redeploy from a patched image.
What’s happening
Ruby2Shell (CVE-2026-132825) affects how Ruby changes letters between upper and lower case in some older text encodings. Veria Labs showed that a visitor could use the flaw to run code on a Rails or classic Sinatra server before signing in. Ruby has fixed all three supported branches. GitLab, GitHub, Red Hat and SUSE have issued updates for affected products, though SUSE still lists some older packages as affected. On 1 December, AWS confirmed that all ZIP-based Lambda functions using its managed Ruby runtime in Auto mode had received the fix. Administrators who use another update mode can switch to Auto or apply the update manually. Those who deploy containers must rebuild and redeploy them from a patched image. Use in real attacks remains unconfirmed.
- What
- Flaw
- Affects
- Ruby used by Rails, classic Sinatra and self-hosted applications
- Affected
- Ruby 3.3.13 and earlier
Ruby 3.4.0 to 3.4.12
Ruby 4.0.0 to 4.0.9
GitLab Community Edition and Enterprise Edition before 19.4.10
GitLab Community Edition and Enterprise Edition 19.5 before 19.5.8
GitLab Community Edition and Enterprise Edition 19.6 before 19.6.1
SUSE Linux Enterprise 15 SP7 with the affected ruby2.5 or ruby3.4 package
SUSE Linux Enterprise Server 15 SP4, SP5 and SP6 on long-term support, Server for SAP Applications 15 SP4 to SP6, and High Performance Computing 15 SP4 and SP5 on extended or long-term support with the affected ruby2.5 package
SUSE Linux Enterprise Server 16.0 and 16.1, including Server for SAP Applications, and Server for NVIDIA 16.1 with the affected ruby3.4 package
Red Hat Satellite 6.16 for RHEL 8 or 9, and Satellite 6.17 and 6.18 for RHEL 9, before the applicable security update
Red Hat Enterprise Linux 8.4, 8.6, 8.8, 9.2, 9.4, 9.6, 9.8, 10.0 and 10.2 on the support channels listed in Red Hat’s advisories, with affected Ruby packages
AWS Lambda functions using an affected managed Ruby runtime or Ruby container image, or bundling an affected copy of Ruby in a custom runtime or layer - Fixed in
- Ruby 3.3.14
Ruby 3.4.13
Ruby 4.0.10
GitLab Community Edition and Enterprise Edition 19.4.10, 19.5.8 and 19.6.1 (official Linux packages and container images)
AWS Elastic Beanstalk Ruby platform 4.15.4 on Amazon Linux 2023
Amazon Linux 2023 Ruby package updates ALAS2023-2026-3511 (3.2), ALAS2023-2026-3509 (3.4) and ALAS2023-2026-3510 (4.0)
Amazon Linux 2027 Preview Ruby 3.4 package update ALAS2027-2026-397
GitHub Enterprise Server 3.19.17, 3.20.13, 3.21.11 and 3.22.6 (Ruby updates and application protections where Ruby could not yet be updated)
SUSE Linux Enterprise 15 SP7 ruby3.4 3.4.13-150700.3.7.1 (SUSE-SU-2026:5413-1)
SUSE Linux Enterprise 15 SP7 ruby2.5 2.5.9-150700.24.14.1 (SUSE-SU-2026:5417-1)
SUSE Linux Enterprise 15 ruby2.5 2.5.9-150000.4.61.1 for the SP4, SP5 and SP6 products covered by SUSE-SU-2026:5416-1
SUSE Ruby container images bci/ruby:2.5-28.30 and bci/ruby:3.4-27.29
SUSE Linux Enterprise Server 16.0 and Server for SAP Applications 16.0 ruby3.4 3.4.13-160000.1.1 (SUSE-SU-2026:24926-1)
SUSE Linux Enterprise Server 16.1 and Server for SAP Applications 16.1 ruby3.4 3.4.13-160100.1.1 (SUSE-SU-2026:24955-1)
SUSE Linux Enterprise Server for NVIDIA 16.1 ruby3.4 3.4.13-160100.1.1 (SUSE-SU-2026:24900-1)
Red Hat Satellite 6.16 update RHSA-2026:103537, 6.17 update RHSA-2026:103536 and 6.18 update RHSA-2026:103535
Red Hat Enterprise Linux 8.4 and 8.6 Advanced Mission Critical Update Support and Extended Update Support Long-Life Add-On (RHSA-2026:103846 and RHSA-2026:103842 respectively)
Red Hat Enterprise Linux 8.8 SAP and telecommunications support channels (RHSA-2026:103843), 9.2 SAP (RHSA-2026:104037) and 9.4 SAP (RHSA-2026:103805 and RHSA-2026:104036)
Red Hat Enterprise Linux Extended Update Support 9.6 (RHSA-2026:103850 and RHSA-2026:104038), 9.8 (RHSA-2026:103804, RHSA-2026:103943 and RHSA-2026:104035), 10.0 (RHSA-2026:103851) and 10.2 (RHSA-2026:103790 and RHSA-2026:104034)
AWS Lambda managed Ruby runtimes for ZIP-based functions (automatic rollout complete for Auto mode on 1 December 2026)
AWS Lambda patched Ruby container images in Amazon ECR Public Gallery (rebuild and redeploy required) - Since
- 19 Nov 2026
Timeline
- Vendor revised
AWS confirmed that every ZIP-based Lambda function using its managed Ruby runtime in Auto mode had received the fix. For other ZIP-based functions using that runtime, AWS advises switching to Auto or applying the runtime update manually.
- Vendor revised
AWS said the first phase of its Lambda Ruby update was complete. Administrators can now get the fixed runtime for a ZIP-based function by updating its code or configuration. AWS expects the second phase to finish by 1 December.
- New fix
Red Hat confirmed a fix for Enterprise Linux 9.2 for SAP Solutions in RHSA-2026:104037. It also listed further fixes for the 9.4 SAP channel and the 9.6, 9.8 and 10.2 extended-support channels.
- New fix
Red Hat confirmed fixes for extended-support editions of Enterprise Linux 8.4, 8.6, 9.6, 9.8, 10.0 and 10.2. Updates also reached the SAP support channels for 8.8 and 9.4 and the telecommunications channel for 8.8.
- New fix
SUSE published fixes for Enterprise Server 16.0 and 16.1, including both SAP editions. The fixed Ruby 3.4 package is 3.4.13-160000.1.1 on 16.0 and 3.4.13-160100.1.1 on 16.1.
- New fix
By 19:17 UTC, Red Hat had confirmed fixes for Satellite 6.18 and 6.17 on Red Hat Enterprise Linux 9, and Satellite 6.16 on Enterprise Linux 8 and 9. The respective updates are RHSA-2026:103535, RHSA-2026:103536 and RHSA-2026:103537.
- New fix
SUSE published advisory SUSE-SU-2026:24900-1 for Enterprise Server for NVIDIA 16.1. It identifies Ruby package 3.4.13-160100.1.1 as the fix.
- New fix
SUSE also released Ruby 2.5 package 2.5.9-150000.4.61.1 for Enterprise Server 15 SP4, SP5 and SP6 on long-term support, the SAP editions of those releases and supported High Performance Computing editions of SP4 and SP5. The update is SUSE-SU-2026:5416-1.
- New fix
SUSE released a Ruby 2.5 fix for SUSE Linux Enterprise 15 SP7. Update SUSE-SU-2026:5417-1 brings the package to 2.5.9-150700.24.14.1.
- New fix
SUSE released Ruby 3.4 package 3.4.13-150700.3.7.1 for SUSE Linux Enterprise 15 SP7, including Server and Desktop. The update is SUSE-SU-2026:5413-1.
- New fix
GitHub released Enterprise Server 3.19.17 with the Ruby security update and application protections for the 3.19 branch.
- New fix
GitHub released Enterprise Server 3.20.13 with the Ruby security update and application protections for the 3.20 branch.
- New fix
GitHub released Enterprise Server 3.21.11 with the same Ruby security update and application protections for the 3.21 branch.
- New fix
GitHub released Enterprise Server 3.22.6 to address the Ruby flaws. It updated Ruby where possible and added protections in the application where Ruby could not yet be updated.
- New fix
Veria Labs listed fixed releases for Chatwoot (4.20.1), Mastodon (4.7.6, 4.6.12, 4.5.22 and 4.4.29), OpenProject (17.9.8 and 17.8.3) and the Discourse base image (2.0.20261119-0203). It still listed GitHub Enterprise Server 3.22.5 and earlier as affected, with no fixed release identified.
- Update
Alan Coopersmith linked Ruby’s string case conversion flaw to CVE-2026-132825 on the oss-security mailing list. Ruby’s own advisory still listed the identifier as pending.
- Update
Cloudflare added a firewall rule to block Ruby2Shell requests that pass through its network. The rule runs automatically on Free plans. On paid plans, it applies where the Cloudflare Managed Ruleset is enabled.
- New fix
AWS released the Ruby 3.4 package fix for Amazon Linux 2027 Preview in release 2027.0.20261120.
- New fix
AWS released updates for three Amazon Linux 2023 packages. Advisory ALAS2023-2026-3511 covers Ruby 3.2, ALAS2023-2026-3509 covers Ruby 3.4 and ALAS2023-2026-3510 covers Ruby 4.0.
- New fix
GitLab released 19.6.1, 19.5.8 and 19.4.10 with fixed Ruby versions in its official Linux packages and container images. GitLab.com and GitLab Dedicated were already patched, while administrators who compile GitLab themselves must also rebuild Ruby.
- New fix
AWS announced Elastic Beanstalk Ruby platform 4.15.4 for Amazon Linux 2023. It includes the fix for all three supported Ruby branches. Customers need to update their environments to receive it.
- Made public
Veria Labs reported that the flaw was reachable before login in default Rails and classic Sinatra apps. Its updated list identified six self-hosted products that bundled affected Ruby versions, including GitLab 19.6.0 with Ruby 3.3.13.
- New fixPartly fixed
Ruby announced that versions 3.3.14, 3.4.13 and 4.0.10 fix the flaw. Ruby 3.2 and earlier are out of support and will receive no fix.
Sources
- Heap buffer overflow in case conversion of stringsRuby · 19 Nov 2026
- Security advisories: multiple vulnerabilities in Regexp and String case conversionRuby · 18 Nov 2026
- Ruby2Shell (GHSA-34m4-m9fh-gqp5)Veria Labs · 19 Nov 2026
- GitLab 19.6 (Upcoming release)GitLab
- GitLab Critical Patch Release: 19.6.1, 19.5.8, 19.4.10GitLab · 20 Nov 2026
- CVE-2026-132825 and related issues – Ruby regular expression engine and string case conversionAWS · 19 Nov 2026
- Amazon Linux 2023 Security AdvisoriesAWS · 20 Nov 2026
- Amazon Linux 2027 Security Advisory ALAS2027-2026-397AWS · 20 Nov 2026
- How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)Cloudflare · 20 Nov 2026
- Re: Ruby: multiple vulnerabilities in Regexp and String case conversionoss-security · 20 Nov 2026
- GitHub Enterprise Server 3.22.6 release notesGitHub · 22 Nov 2026
- GitHub Enterprise Server 3.21.11 release notesGitHub · 22 Nov 2026
- GitHub Enterprise Server 3.20.13 release notesGitHub · 22 Nov 2026
- GitHub Enterprise Server 3.19.17 release notesGitHub · 22 Nov 2026
- Security update for ruby3.4 (SUSE-SU-2026:5413-1)SUSE · 23 Nov 2026
- CVE-2026-132825: affected SUSE products and fixed packagesSUSE · 24 Nov 2026
- Security update for ruby2.5 (SUSE-SU-2026:5416-1)SUSE · 24 Nov 2026
- Bug 2576211: Ruby heap-based buffer overflow via string case conversionRed Hat · 27 Nov 2026

