Ruby2Shell (GHSA-34m4-m9fh-gqp5)
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Veria Labs disclosed GHSA-34m4-m9fh-gqp5, a one-byte heap overflow in Ruby's case mapping for single-byte encodings such as ISO-8859 and Windows-125x. Upcasing ß writes two bytes but the loop checks for one, so 21 of them overrun a buffer sized at input length plus 20. Rails and classic Sinatra are reachable by default. Fixed in Ruby 3.3.14, 3.4.13 and 4.0.10. Per Veria, GitLab, GitHub Enterprise Server and Chatwoot have no fix yet; a Rails remote code execution proof of concept is due 25 November. Most claims here come from Veria alone.