Ruby fixes seven Regexp and String case conversion flaws, some allow RCE
Ruby has released updates for seven vulnerabilities in its regular expression engine and string case conversion, with proof-of-concept code for some.
Reported by ruby-lang.org
First reported Summary updated
- Public PoC
- Yes
- Exploited
- Not known
- Severity
- Not rated
What happened
Seven vulnerabilities were found in Ruby's regular expression engine and in string case conversion.1
The Ruby team is aware of proof-of-concept code showing that some of these flaws can lead to remote code execution.1
Fixes are available in Ruby 4.0.10, 3.4.13 and 3.3.14.1
CVE identifiers have been requested but not yet assigned, so the advisory uses GHSA identifiers.1
Who is affected
Is there a public exploit?
Yes, public Proof-of-concept code exists that demonstrates remote code execution for some of the vulnerabilities.1
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
What to do
- Upgrade to Ruby 4.0.10, 3.4.13 or 3.3.14.1
For bug hunters
The flaws are memory-safety bugs in string case conversion and regular expression handling, including heap overflows, double free, integer overflow and out-of-bounds reads. In bug bounty programmes, such issues appear wherever user input reaches native parsers, template engines, regex compilation or string manipulation libraries. Test applications that accept attacker-controlled regular expressions or perform case conversion on untrusted strings, especially in Ruby services. Look for crashes, memory corruption or unexpected behaviour when processing crafted patterns or strings.
What to test
- Submit crafted regular expressions to endpoints that compile user-supplied patterns.
- Send strings with unusual Unicode case mappings to case conversion functions.
- Test regex matching with case-insensitive flags on attacker-controlled input.
- Check for crashes or memory errors when converting Regexp objects to strings.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
ruby-lang.org
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.”