Karen IT Security Response Center (KSRC) Advisory

Advisory ID: KSRC-2026-11192 | Publication Date: 19 November 2026

Multiple Critical Vulnerabilities in Ruby Regexp Engine and String Case Conversion
7 GHSA Advisories (CVEs Pending) – Several with Confirmed RCE Proof-of-Concepts

Summary

On 18 November 2026 the Ruby project disclosed seven memory-safety vulnerabilities affecting the regular expression engine and string case-conversion routines. Several of these flaws have publicly acknowledged proof-of-concept exploits capable of achieving remote code execution.

Ruby has released emergency updates for all supported branches. Immediate upgrading is strongly recommended for any organization running Ruby-based applications (including Rails, Sinatra, and custom services) that process untrusted input.

Technical Overview

The vulnerabilities include:

  • Heap buffer overflows in string case conversion (two independent issues)
  • Double free during regular expression compilation
  • Integer overflow leading to heap buffer overflow in Regexp compilation
  • Heap buffer overflow in Regexp#to_s
  • Out-of-bounds reads in case-insensitive matching and backreference handling

Exploitation typically requires an application to compile a regular expression from attacker-controlled input or perform case conversion on a crafted string. Successful exploitation can result in arbitrary code execution with the privileges of the Ruby process.

Affected Versions

  • Ruby 3.3.13 and earlier
  • Ruby 3.4.0 through 3.4.12
  • Ruby 4.0.0 through 4.0.9

Fixed versions: Ruby 3.3.14, 3.4.13, and 4.0.10

Ruby 3.2 and earlier have reached end-of-life and will not receive these fixes. Organizations still running these versions should plan migration as a priority.

Recommendations

  1. Upgrade all production and development Ruby installations to one of the fixed versions (4.0.10, 3.4.13, or 3.3.14) as soon as possible.
  2. Restart all Ruby processes and application servers after upgrading.
  3. Audit application code for paths that compile regular expressions from untrusted input (Regexp.new, Regexp.compile, interpolated regex literals) or perform case conversion on user-controlled strings.
  4. Where immediate upgrade is not feasible, restrict or sanitize untrusted input used in Regexp construction and case conversion operations.
  5. Monitor official Ruby release channels for CVE assignments and any additional guidance.

Support from KSRC

KSRC (Karen IT Security Response Center) is fully prepared to assist organizations with impact assessment, prioritization, and remediation guidance related to these vulnerabilities.


Karen IT
We make the Internet harder to abuse.