Ruby 4.0.10, 3.4.13 and 3.3.14 patch seven Regexp and case-conversion flaws

On 18 November 2026 the Ruby project published security advisories for seven vulnerabilities in Ruby's regular expression engine and in the case conversion of strings. The post on ruby-lang.org was written by mame. The fixes ship in Ruby 4.0.10, 3.4.13 and 3.3.14. The advisory says the team is aware of proof-of-concept exploits showing that some of the flaws can be used to trigger remote code execution (RCE), and it strongly recommends upgrading.
CVE identifiers have been requested but not yet assigned, so the advisory refers to each bug by its GitHub Security Advisory (GHSA) identifier.
The seven issues are:
- GHSA-34m4-m9fh-gqp5: a one-byte heap-based buffer overflow in the case conversion of strings. Changing the case of a crafted string may allow RCE, and PoCs show it can trigger RCE in some scenarios.
- GHSA-7x2q-68qv-6p8x: a double free in regular expression compilation. Compiling a crafted pattern may allow RCE in applications that compile attacker-controlled patterns; PoCs show RCE in some scenarios.
- GHSA-87fm-7w84-j2px: an integer overflow in the case conversion of strings that causes a heap-based buffer overflow. Changing the case of a crafted string may allow RCE, and PoCs show RCE in some scenarios.
- GHSA-wpqw-5qxg-m68r: an out-of-bounds read in case-insensitive regular expression matching. Matching against a crafted pattern may allow RCE in applications that use attacker-controlled patterns. For this one, the PoCs prove memory corruption in an attacker-controlled way.
- GHSA-3p8q-wmhx-vm2w: an integer overflow in the regex engine that causes a heap-based buffer overflow during compilation. Compiling a crafted pattern may allow RCE in applications that compile attacker-controlled patterns; PoCs show RCE in some scenarios.
- GHSA-7whj-cfh7-xgm4: a heap-based buffer overflow in Regexp#to_s. Converting a crafted regular expression to a string may allow information disclosure or RCE in applications that compile attacker-controlled patterns; PoCs show RCE in some scenarios.
- GHSA-pvgc-g7gj-pv6h: an out-of-bounds read in case-insensitive backreference matching. Matching a crafted string may disclose memory contents or crash the process. No RCE is claimed for this one.
Affected versions are Ruby 3.3.13 and earlier, Ruby 3.4.0 through 3.4.12, and Ruby 4.0.0 through 4.0.9. The recommended action is to upgrade to 4.0.10, 3.4.13 or 3.3.14. Ruby 3.3 is in its security maintenance phase. Ruby 3.2 and earlier have reached end of life and will not receive these fixes.
Credits go to Stephan Lipp (Ada Logics) and Anthropic for GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-wpqw-5qxg-m68r and GHSA-7whj-cfh7-xgm4; to baba__yaga for GHSA-87fm-7w84-j2px; to aphantom for GHSA-3p8q-wmhx-vm2w; and to Hiroya Fujinami and Hiroshi SHIBATA for GHSA-pvgc-g7gj-pv6h.
Key facts
- Seven vulnerabilities in Ruby's regular expression engine and string case conversion were disclosed on 18 Nov 2026; fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14.
- The Ruby team says it is aware of PoCs proving that some of the flaws can trigger remote code execution; five of the seven advisories say PoCs show RCE in some scenarios.
- Affected: Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9. Ruby 3.2 and earlier are end of life and will not receive these fixes.
- Several of the RCE risks apply to applications that compile attacker-controlled regular expression patterns; the case-conversion bugs are triggered by a crafted string.
- CVE identifiers are requested but not yet assigned, so the advisory uses GHSA identifiers.
Why it matters
Ruby is a widely used language, and this is an official advisory from the project itself covering seven memory-safety bugs in two core areas: the regex engine and string case conversion. The team says it knows of PoCs showing remote code execution is possible, and it strongly recommends upgrading. Five of the seven entries state that PoCs show RCE in some scenarios; a sixth, GHSA-wpqw-5qxg-m68r, has PoCs showing attacker-controlled memory corruption.
Who it affects
Anyone running Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, or 4.0.0 through 4.0.9. The regex bugs matter most to applications that compile attacker-controlled patterns. The two case-conversion bugs that may allow RCE (GHSA-34m4-m9fh-gqp5 and GHSA-87fm-7w84-j2px) are triggered by changing the case of a crafted string. Users on Ruby 3.2 and earlier are on end-of-life versions that will not receive these fixes.
How to use it
Upgrade to Ruby 4.0.10, 3.4.13 or 3.3.14, whichever matches your branch. Ruby 3.3 is in the security maintenance phase, so 3.3.14 is the fix for that line. If you are on 3.2 or earlier, the advisory offers no patch, so moving to a supported branch is the route.
How solid is it
This is the Ruby project's own advisory, posted by mame on ruby-lang.org, with fixed releases announced alongside it. The vulnerabilities are named by GHSA identifier and credited to named reporters. The RCE claim is worded with care: for most entries the text says a crafted input may allow RCE and that PoCs prove RCE in some scenarios. No PoC code or technical exploit details are published.
Risks and caveats
CVE identifiers have been requested but not assigned, so scanners and trackers keyed to CVEs may not flag these yet. Not all seven allow RCE: GHSA-pvgc-g7gj-pv6h is described only as possibly disclosing memory contents or crashing the process, and GHSA-wpqw-5qxg-m68r is backed by PoCs for memory corruption. The advisory says RCE depends on the scenario, and for the regex bugs on applications that compile attacker-controlled patterns. No workaround or mitigation other than upgrading is given. No CVE identifiers or CVSS scores are given.
“We are aware of PoCs that prove some of them can be used to trigger remote code execution.”
— Ruby security advisory, ruby-lang.org