hn.today

Multiple vulnerabilities in Regexp and String case conversion

ruby-lang.org338 points130 comments
Screenshot of Multiple vulnerabilities in Regexp and String case conversion

Ruby disclosed seven security vulnerabilities affecting its regular-expression engine and string case conversion. The flaws include two heap-buffer overflows in case conversion, one caused by integer overflow; a double free and an integer-overflow-driven buffer overflow during regular-expression compilation; an out-of-bounds read during case-insensitive matching; a heap-buffer overflow in Regexp#to_s; and another out-of-bounds read during case-insensitive backreference matching. Depending on the operation and whether an application processes attacker-controlled input, the defects can cause memory disclosure, crashes, memory corruption, or remote code execution. Proofs of concept demonstrate that some vulnerabilities can lead to RCE.

Affected releases are Ruby 3.3.13 and earlier, Ruby 3.4.0 through 3.4.12, and Ruby 4.0.0 through 4.0.9. The fixed versions are Ruby 3.3.14, 3.4.13, and 4.0.10, and upgrading is strongly recommended. Applications are particularly exposed if they compile regular-expression patterns supplied by users or otherwise apply the vulnerable operations to crafted input. Ruby 3.2 and older are end-of-life and will not receive these security fixes; Ruby 3.3 remains in security maintenance. The advisory credits researchers from Ada Logics and Anthropic, as well as individual contributors, for identifying the issues.

Read on ruby-lang.org130 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.