Multiple vulnerabilities in Regexp and String case conversion(ruby-lang.org)
337 points by runesoerensen 11 days ago | 130 comments
tl;dr: Ruby disclosed seven vulnerabilities in its regex engine and string case-conversion code, including heap buffer overflows, a double free, and out-of-bounds reads, with PoCs demonstrating remote code execution for several of them. Fixes are available in Ruby 4.0.10, 3.4.13, and 3.3.14; versions 3.2 and earlier are EOL and won't be patched. Several bugs were credited to Ada Logics and Anthropic, suggesting AI-assisted vulnerability discovery.
HN Discussion:
  • ↑Technical deep-dive into the specific encoding bug involving German sharp 's' buffer handling
  • ↑Demonstrates the vulnerability with a concrete Shift_JIS downcase proof-of-concept
  • ↑Memory-unsafe languages like C are indefensible against AI-assisted vulnerability discovery
  • ↑Sarcastic note that memory-safe languages would prevent these issues
  • •Side observation about GitHub's slow CVE assignment process