NewsCrawler.org

Ruby fixes seven vulnerabilities in Regexp and string case conversion

On 18 November 2026 the Ruby project published security advisories about seven vulnerabilities in the Regexp regular expression engine and in string case conversion. For some of them, proof-of-concept[1] code exists that shows they can be used for remote code execution[2]. Fixes are in Ruby 4.0.10, 3.4.13 and 3.3.14, and the project strongly recommends upgrading.

The flaws include a heap buffer overflow[3] in string case conversion and in Regexp#to_s, a double free[4] during regular expression compilation, an integer overflow, and out-of-bounds reads that can corrupt memory or crash the process. Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9 are affected. Ruby 3.3 is in its security maintenance phase, while 3.2 and earlier no longer receive fixes.

CVE identifiers were requested but not yet assigned, so the advisory uses GitHub Security Advisory (GHSA) identifiers. Stephan Lipp (Ada Logics) and Anthropic are credited with reporting four of the seven issues.

Read the original ruby-lang.orgDiscussion

Discussion

Commenters mostly focus on the type of bug: several call these C memory corruption issues and argue that memory-unsafe languages are exposed, especially now that AI models find such bugs. One commenter describes a Windows-1252 case conversion path where uppercasing German sharp s (ß) can add a character and overflow the buffer by one byte, and says this is only a suspicion. Another posts a Shift_JIS test that shows a wrong length in an unfixed version. Some suggest replacing regular expressions with plain conditions and array access.

Sources

  • Ruby Programming Language

    Multiple vulnerabilities in Regexp and String case conversion

    131 comments

  • KRGeekNews KO

    Ruby 정규식과 문자열 대소문자 변환에서 취약점 7건 발견, 일부 원격 코드 실행 가능

    2 points1 comment

Published: First seen: Читать по-русски

Open as a page