Skip to content
NewA calmer, faster ZeroHour

Ruby patches seven Regexp and String flaws that can enable RCE

Original title: Multiple vulnerabilities in Regexp and String case conversion

Hacker News · securityby runesoerensen ()2 min read1
Part of a story covered by 4 sourcesRuby fixes seven regex and string memory flaws in three releasesMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the articlePublic proof of concept

Impact: remote code execution, memory disclosure, or process crash

ProductAffectedFixed in
Ruby3.3.13 and earlier; 3.4.0 through 3.4.12; 4.0.0 through 4.0.93.3.14, 3.4.13, 4.0.10
What to do
  1. 1.Upgrade to Ruby 4.0.10, 3.4.13, or 3.3.14.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

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.

Hacker News · security

By runesoerensen · ruby-lang.org

Read the full article at Hacker News · security

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.