CVE Index中文
L3 · ShartedRuby · RCE · memory safetyruby-string-regexp-memory

Changing case can change control flow

Ruby fixes seven string and regexp memory flaws, with conditional RCE proofs

Ruby 4.0.10 / 3.4.13 / 3.3.14 fix seven flaws in string case conversion and regular expressions. Ruby confirms RCE PoCs for some paths; exposure depends on processing crafted strings or attacker-controlled patterns. The backreference flaw is described as memory disclosure or a crash.

Disclosed
Nov 19, 2026
Public disclosure date
Severity
Sharted
7 CVEs tracked here
Splash zone
Ruby ≤3.3.13, 3.4.0–3.4.12 or 4.0.0–4.0.9; applications reaching affected string/regexp operations
ruby
In the wild
Unknown
Ruby confirms RCE PoCs in some scenarios, but does not report exploitation in the wild.

What happened

These are runtime defects in string case conversion and the regular-expression engine, rather than a claim that every Rails application is automatically exploitable. Several regexp paths require an application to compile or use attacker-controlled patterns; case conversion and backreference matching have different input conditions. The advisory confirms RCE PoCs for some flaws, attacker-influenced memory corruption for the case-insensitive pattern read, and disclosure/crash risk for the backreference read. It does not establish a victim count or active exploitation campaign. L3 reflects a mainstream runtime with confirmed exploit proofs.

The official page header says November 18, while its history explicitly says first publication was November 19 at 00:00 UTC. This entry follows that stated UTC timestamp. Ruby’s original advisories still use GHSA identifiers and say CVE assignments are pending. A secondary report labels the first flaw CVE-2026-132825; that mapping is not asserted here without original confirmation.

The seven issues share one release batch, so they are indexed together. No general configuration switch is established as a complete mitigation. Apply the vendor releases, including Ruby bundled into other products, rather than treating a development dependency change as proof production was updated.

What’s in the bowl

GHSA-34m4-m9fh-gqp5

Case-conversion one-byte overwrite

Changing case in certain single-byte encodings, including ISO-8859-1 and Windows-1252, can write beyond the output buffer. Ruby confirms RCE PoCs in some scenarios.

GHSA-7x2q-68qv-6p8x

Regexp intersection double free

Compiling attacker-controlled patterns containing a character-class intersection can free a buffer twice; Ruby confirms RCE PoCs in some scenarios.

GHSA-87fm-7w84-j2px

Case-conversion size overflow

A converted string exceeding 4 GiB can overflow the calculated length and overrun heap storage; Ruby confirms RCE PoCs in some scenarios.

GHSA-wpqw-5qxg-m68r

Case-insensitive regexp memory read

Matching attacker-controlled case-insensitive patterns can read beyond bounds and produce attacker-influenced memory corruption; this is not a claim of a complete RCE demonstration.

GHSA-3p8q-wmhx-vm2w

Regexp compiled-program size overflow

Compiling an attacker-controlled pattern can overflow the program-size calculation and overwrite a heap buffer; Ruby confirms RCE PoCs in some scenarios.

GHSA-7whj-cfh7-xgm4

Regexp stringification heap overwrite

Regexp#to_s can overwrite heap memory when processing a crafted pattern, potentially exposing memory or executing code; Ruby confirms RCE PoCs in some scenarios.

GHSA-pvgc-g7gj-pv6h

Case-insensitive backreference overread

A case-insensitive backreference can read past the subject string. Ruby reports possible memory disclosure or a process crash, not RCE for this flaw.

Are you standing in it?

Run ruby -v on each box, then type the version or pick the closest match.

Fixed versions (Nov 19, 2026)
BranchSafe fromStatus
Ruby 4.04.0.10Patched
Ruby 3.43.4.13Patched
Ruby 3.33.3.14Security maintenance; patched
Ruby 3.2 and oldernoneEnd of life; these fixes will not be released upstream

Crime-scene timeline

  1. Nov 19, 00:00 UTC

    Ruby publishes the seven-issue advisory

    The history explicitly gives this UTC publication time, despite the page header and URL carrying November 18. Fixed versions are 4.0.10, 3.4.13 and 3.3.14.

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.

  • Ruby seven-issue security advisoryPrimarySeven GHSA identities, branch fixes, EOL status and explicit UTC publication history
  • Ruby GHSA-34m4-m9fh-gqp5 advisoryPrimaryChanging case in certain single-byte encodings, including ISO-8859-1 and Windows-1252, can write beyond the output buffer. Ruby confirms RCE PoCs in some scenarios.
  • Ruby GHSA-7x2q-68qv-6p8x advisoryPrimaryCompiling attacker-controlled patterns containing a character-class intersection can free a buffer twice; Ruby confirms RCE PoCs in some scenarios.
  • Ruby GHSA-87fm-7w84-j2px advisoryPrimaryA converted string exceeding 4 GiB can overflow the calculated length and overrun heap storage; Ruby confirms RCE PoCs in some scenarios.
  • Ruby GHSA-wpqw-5qxg-m68r advisoryPrimaryMatching attacker-controlled case-insensitive patterns can read beyond bounds and produce attacker-influenced memory corruption; this is not a claim of a complete RCE demonstration.
  • Ruby GHSA-3p8q-wmhx-vm2w advisoryPrimaryCompiling an attacker-controlled pattern can overflow the program-size calculation and overwrite a heap buffer; Ruby confirms RCE PoCs in some scenarios.
  • Ruby GHSA-7whj-cfh7-xgm4 advisoryPrimaryRegexp#to_s can overwrite heap memory when processing a crafted pattern, potentially exposing memory or executing code; Ruby confirms RCE PoCs in some scenarios.
  • Ruby GHSA-pvgc-g7gj-pv6h advisoryPrimaryA case-insensitive backreference can read past the subject string. Ruby reports possible memory disclosure or a process crash, not RCE for this flaw.