Ruby ships fixes for regexp and string bugs, some with RCE proofs
Versions 4.0.10, 3.4.13, and 3.3.14 close seven memory-safety flaws; CVE identifiers have not been assigned yet.
Ruby has patched seven vulnerabilities in its regular expression engine and in string case conversion, and says proofs of concept show that some of them can be used for remote code execution. The project released Ruby 4.0.10, 3.4.13, and 3.3.14 and urged users to upgrade. CVE identifiers have been requested but not assigned, so the advisory, posted by mame, refers to the bugs by GitHub Security Advisory identifiers.
Two of the flaws are in case conversion. A one-byte heap buffer overflow (GHSA-34m4-m9fh-gqp5) and a separate integer overflow that itself produces a heap buffer overflow (GHSA-87fm-7w84-j2px) can both be reached by changing the case of a crafted string. Ruby says it has proofs of concept that turn each into remote code execution in some scenarios.
A double free during regular expression compilation (GHSA-7x2q-68qv-6p8x) can allow remote code execution in applications that compile attacker-controlled patterns. Ruby also reports an out-of-bounds read in case-insensitive regular expression matching (GHSA-wpqw-5qxg-m68r). The project says it is aware of proofs of concept for remote code execution against some of the seven issues, and that the released versions fix them.