security —

Multiple vulnerabilities in Regexp and String case conversion

Seven vulnerabilities have been discovered in Ruby’s regular expression engine and in the case conversion of strings.

Multiple vulnerabilities in Regexp and String case conversion

We are aware of PoCs that prove some of... Seven vulnerabilities have been discovered in Ruby’s regular expression engine and in the case conversion of strings.

We are aware of PoCs that prove some of them can be used to trigger remote code execution. We have released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix them.

CVE identifiers have been requested for these vulnerabilities but have not been assigned yet, so this advisory refers to them by their GitHub Security Advisory (GHSA) identifiers. Ruby has a one-byte heap-based buffer overflow in the case conversion of strings.

Changing the case of a crafted string may allow remote code execution. We are aware of PoCs that prove this flaw can be used to trigger RCE in some scenarios. Ruby has a double free in its regular expression engine.

Reported by Hacker News.

security

Related coverage

Elsewhere in this edition