Ruby patches Ruby2Shell flaw that can lead to RCE
PoC code demonstrates RCE for five of seven flaws; fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14.
Heap buffer overflow in Ruby case conversion
Ruby can write one byte past a heap buffer during case conversion, including for ISO-8859-1 and Windows-1252. A local attacker can trigger it without privileges or user interaction, though conditions are hard to meet. Success can expose, change, or crash memory. Ruby releases before 3.3.14, 3.4.13, and 4.0.10 are affected.
What to do: Upgrade Ruby to 3.3.14, 3.4.13, or 4.0.10 for the installed branch.
| Product | Affected | Fixed in |
|---|---|---|
| Ruby | before 3.3.14, 3.4.13, and 4.0.10 | 3.3.14, 3.4.13, and 4.0.10 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Ruby before 3.3.14, 3.4.13, and 4.0.10 has a heap-based buffer overflow during case conversion. One byte can be written outside a buffer for, for example, ISO-8859-1 or Windows-1252.
PoC code demonstrates RCE for five of seven flaws; fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14.
Today 980 readers · 1.1K views · 92 reads · all time 211K views