Ruby patches seven Regexp and String flaws that can enable RCE
Original title: Multiple vulnerabilities in Regexp and String case conversion
Fixes are in 4.0.10, 3.4.13 and 3.3.14; CVEs are unassigned, and Ruby 3.2 and earlier stay unpatched.
Ruby disclosed seven flaws in its regular expression engine and string case conversion. Several cause heap overflows, a double free or out-of-bounds reads, and the project says proofs of concept show remote code execution in some scenarios. Affected releases are 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9. Ruby 3.2 and earlier are end of life and will not receive these fixes.
Unconfirmed: The advisory reports proofs of concept but does not say the flaws are exploited in real attacks.
- GHSA-34m4-m9fh-gqp5 is a one-byte heap overflow in string case conversion.
- Regexp compilation flaws include a double free and integer-overflow heap overflows.
- GHSA-pvgc-g7gj-pv6h can disclose memory or crash the process.
- Ruby 3.3 remains in security maintenance and received 3.3.14.
Impact: remote code execution, memory disclosure, or process crash
| Product | Affected | Fixed in |
|---|---|---|
| Ruby | 3.3.13 and earlier; 3.4.0 through 3.4.12; 4.0.0 through 4.0.9 | 3.3.14, 3.4.13, 4.0.10 |
- 1.Upgrade to Ruby 4.0.10, 3.4.13, or 3.3.14.
- Products
- Ruby
- Organizations
- Ada LogicsAnthropic
From the original article
2 min read at ruby-lang.org
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.
By runesoerensen · ruby-lang.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.