CVE-2026-132825 and related issues – Ruby regular expression engine and string case conversion
Bulletin ID: 2026-193-AWS
Scope: AWS
Content Type: Important (requires attention)
Publication Date: 11/19/2026 15:05 PM PST
Last Updated Date: 12/01/2026 13:40 PM PST
Description:
On November 18, 2026, the Ruby maintainers published fixes for seven issues in CRuby's regular expression engine and string case conversion, including CVE-2026-132825. These issues affect Ruby versions before 4.0.10, 3.4.13, and 3.3.14 and could allow remote code execution in some configurations.
These issues are memory-safety issues in Ruby's regular expression engine and in string case conversion on certain non-UTF-8 encodings. When an application processes third party-controlled input through these code paths, a remote, unauthenticated actor might be able to crash the process, read memory, or run arbitrary code. Rails and classic Sinatra applications might be reachable through default request handling.
Affected versions:
Ruby before 4.0.10, before 3.4.13, and before 3.3.14. Ruby 3.2 and earlier versions are end of life and will not receive upstream fixes.
Current Mitigation Status:
AWS Elastic Beanstalk
AWS Elastic Beanstalk released updated Ruby platforms on Amazon Linux 2023 (platform version 4.15.4) on 2026-11-19. Updates include Ruby 3.3 to 3.3.14, Ruby 3.4 to 3.4.13, and Ruby 4.0 to 4.0.10. Customers using Elastic Beanstalk Ruby platforms should update their environments to platform version 4.15.4, either through managed platform updates or by updating the environment.
AWS Lambda
AWS Lambda is updating its managed Ruby runtimes to include the fixes for CVE-2026-132825 and the related issues.
We have made patched images with the Ruby versions that address the issue available at Amazon ECR Public Gallery. Customers deploying functions as container images should build and redeploy their function from the latest image available. For customers deploying Lambda functions as ZIP packages, managed runtime updates are completed for all functions in auto mode. If your function is not in auto mode, we recommend that you move to auto mode or manually update the function to pick the update.
Customers who include their own Ruby distribution in a custom runtime or layer should upgrade to Ruby 4.0.10, 3.4.13, or 3.3.14 or later.
For more information, seeUnderstanding how Lambda manages runtime version updates and Lambda runtimes.
Amazon Linux
Updated Ruby packages that address CVE-2026-132825 are available for Amazon Linux 2023 and the Amazon Linux 2027 Preview. The Amazon Linux 2 core ruby package is not affected.
Amazon Linux 2023: ruby3.2-3.2.8-184.amzn2023.0.7, ruby3.4-3.4.13-27.amzn2023.0.9, ruby4.0-4.0.10-41.amzn2023.0.1
Amazon Linux 2027 Preview: ruby3.4-3.4.13-27.amzn2027.0.9
To update, run the command for the Ruby version you have installed:
Amazon Linux 2023:
|
sudo dnf upgrade --releasever=latest ruby3.2-3.2.8-184.amzn2023.0.7 |
Amazon Linux 2027 Preview:
|
sudo dnf update ruby3.4 --releasever 2027.0.20261120 or dnf update --advisory ALAS2027-2026-397 --releasever 2027.0.20261120 |
After updating, restart the applications and services that run Ruby, such as Puma, Unicorn or Passenger, so running processes use the fixed code. A reboot is not required.
The deprecated ruby2.4, ruby2.6 and ruby3.0 topics in Amazon Linux Extras on Amazon Linux 2 do not receive this fix. If you use them, move to ruby3.4 or ruby4.0 on Amazon Linux 2023.
Amazon Linux Explore shows the current fix status for CVE-2026-132825.
We are investigating impact on other AWS services and will update this bulletin as more information becomes available.
Interim step for customers who cannot update immediately:
There are no workarounds that fully mitigate these issues. Customers who cannot update immediately should limit susceptibility of internet-facing Ruby applications and avoid processing untrusted input in non-UTF-8 encodings where possible.
Customers who manage their own Ruby installations should upgrade to Ruby 4.0.10, 3.4.13, or 3.3.14 or later. Customers on Ruby 3.2 or earlier should upgrade to a supported Ruby version. Customers using Amazon Linux should apply the updated packages listed above.
If you use AWS WAF, we have released version 1.29 of the AWS Managed Rules Known Bad Inputs rule group, which includes three rules that help protect against exploitation attempts related to CVE-2026-132825.
Ruby2Shell_METHODOVERRIDE_HEADER detects unexpected expansion patterns in the X-HTTP-Method-Override header.
Ruby2Shell_METHODOVERRIDE_BODY detects unexpected expansion patterns in _method values submitted through URL-encoded request bodies.
Ruby2Shell_MULTIPARTMETHOD detects multipart requests that combine a _method field, an affected legacy character encoding, and repeated expansion-byte representations.
The new rules operate in Count mode because they may also match intended traffic. The risk depends on whether your application accepts legacy character encodings, custom method-override values, or multipart form data with per-part character encodings. Before switching a rule to Block, review its matches using CloudWatch metrics, sampled requests, or AWS WAF logs. This review helps confirm that the rule will not block intended traffic for your application. To block matching traffic, pin the managed rule group to version 1.29 in your web ACL and change the applicable rule actions from Count to Block. For release details and availability, follow the AWS Managed Rules changelog and subscribe to the AWS WAF SNS topic. We will update the coverage as verified information becomes available.
References:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- CVE-2026-132825
- GHSA-34m4-m9fh-gqp5
- https://alas.aws.amazon.com/
Please contact AWS Security with any security questions or concerns at aws-security@amazon.com.