
Ruby fixes seven Regexp and String case conversion vulnerabilities
Ruby released versions 4.0.10, 3.4.13, and 3.3.14 to fix seven vulnerabilities in its regular expression engine and string case conversion, some with proof-of-concept remote code execution paths.
Ruby maintainers disclosed seven vulnerabilities in the language's regular expression engine and string case conversion, with proof-of-concept code showing some can lead to remote code execution. The project released Ruby 4.0.10, 3.4.13, and 3.3.14 to address them and strongly recommends upgrading. CVE identifiers have been requested but not assigned, so the advisory uses GitHub Security Advisory identifiers.
Vulnerabilities and impacts
The advisory lists GHSA-34m4-m9fh-gqp5, a one-byte heap-based buffer overflow in case conversion of strings; GHSA-7x2q-68qv-6p8x, a double free in regular expression compilation; GHSA-87fm-7w84-j2px, an integer overflow in case conversion that causes a heap-based buffer overflow; GHSA-wpqw-5qxg-m68r, an out-of-bounds read in case-insensitive regular expression matching; GHSA-3p8q-wmhx-vm2w, an integer overflow in the regular expression engine that causes a heap-based buffer overflow; GHSA-7whj-cfh7-xgm4, a heap-based buffer overflow in Regexp#to_s; and GHSA-pvgc-g7gj-pv6h, an out-of-bounds read in case-insensitive backreference matching.
Changing the case of a crafted string may allow remote code execution for the case conversion flaws. Compiling a crafted regular expression pattern may allow remote code execution in applications that compile attacker-controlled patterns. Matching against a crafted pattern may allow remote code execution in applications that use attacker-controlled patterns. Converting a crafted regular expression to a string may allow information disclosure or remote code execution in applications that compile attacker-controlled patterns. Matching a crafted string may disclose memory contents or crash the process.
Affected versions and upgrade path
Ruby 3.3.13 and earlier, Ruby 3.4.0 through 3.4.12, and Ruby 4.0.0 through 4.0.9 are affected. Users should upgrade to Ruby 4.0.10, 3.4.13, or 3.3.14. Ruby 3.3 is in the security maintenance phase. Ruby 3.2 and earlier have reached their end of life and will not receive these fixes.
Credits and publication
Credits include Stephan Lipp (Ada Logics) and Anthropic for several advisories; baba__yaga; aphantom; Hiroya Fujinami; and Hiroshi SHIBATA. The advisory was originally published at 2026-11-19 00:00:00 (UTC) and posted by mame on 18 Nov 2026.
Sources: Ruby
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.