Technology1 min read

Multiple vulnerabilities in Regexp and String case conversion

By · Published by Everything Blog

In short

The flaws compromise core features including regular expression compilation, case-insensitive pattern matching, and Regexp#to_s string conversions when crafted inputs are processed. Potential impacts range from process crashes and sensitive information exposure to full remote code execution stemming from heap buffer overflows, integer overflows, out-of-bounds reads, and a double-free issue. To remediate these threats, the development team has published updated versions 4.0.10, 3.4.13, and 3.3.14. Because official CVE identifiers have not yet been assigned, the vulnerabilities are currently tracked via GitHub Security Advisory identifiers.

Key points

  • Ruby installations running 3.3.13 and earlier, 3.4.0 through 3.4.12, or 4.0.0 through 4.0…: Ruby installations running 3.3.13 and earlier, 3.4.0 through 3.4.12, or 4.0.0 through 4.0.9 should be patched immediately.
  • Systems relying on Ruby 3.2 and older releases will remain vulnerable because those versi…: Systems relying on Ruby 3.2 and older releases will remain vulnerable because those versions have reached end of life.
  • Attackers can exploit these flaws through crafted inputs to trigger remote code execution…: Attackers can exploit these flaws through crafted inputs to trigger remote code execution, memory corruption, or sensitive data exposure.

Sources checked by our analysis pipeline: 1

Security advisories: multiple vulnerabilities in Regexp and String case conversion

Posted by mame on 18 Nov 2026

Seven vulnerabilities have been discovered in Ruby’s regular expression engine and in the case conversion of strings. We are aware of PoCs that prove some of them can be used to trigger remote code execution. We have released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix them. We strongly recommend upgrading.

CVE identifiers have been requested for these vulnerabilities but have not been assigned yet, so this advisory refers to them by their GitHub Security Advisory (GHSA) identifiers.

GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings

Ruby has a one-byte heap-based buffer overflow in the case conversion of strings. Changing the case of a crafted string may allow remote code execution. We are aware of PoCs that prove this flaw can be used to trigger RCE in some scenarios.

GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation

Ruby has a double free in its regular expression engine. Compiling a crafted regular expression pattern may allow remote code execution in applications that compile attacker-controlled patterns.…

Technology