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.
https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
https://verialabs.com/ruby2shell/
https://ubuntu.com/security/CVE-2026-132825
https://news.ycombinator.com/item?id=50554038
https://github.com/semgrep/detection-scripts/pull/16
https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5
https://github.com/evenomn/CVE-2026-132825