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.…
The programming language's maintenance strategy has been updated to deliver both security patches and select backported bug resolutions going forward. Because of this expanded focus on stability, the development team has officially rebranded the support period as the legacy maintenance phase. This ongoing support remains fully guaranteed through the previously established timeline ending in March 2027.
The core language maintainers have delivered critical maintenance updates addressing identified security vulnerabilities and routine software flaws. Published by k0kubun, this distribution arrives alongside coordinated maintenance releases across multiple supported release lines to ensure ecosystem stability. Developers relying on these platforms can now access updated packages through standard project distribution channels.
Maintainers have delivered vital security patches and general bugfixes through community contributions from numerous developers and testers. This deployment addresses ongoing stability concerns for systems running modern branches of the language. It arrived as part of a synchronized maintenance cycle impacting several supported release lines on the same day.