Ruby Fixes Seven Regex and String Flaws; Five Have PoC RCE

· Original article ↗

Summary

Ruby fixed seven memory-safety flaws in its regex engine and string case-conversion code. Maintainers say PoCs demonstrate remote code execution for five; no attacks have been reported. Fixed releases are Ruby 4.0.10, 3.4.13 and 3.3.14.

Key points

  • The seven flaws affect Ruby’s regular expression engine and string case-conversion code.
  • Maintainers say PoCs show that crafted input can trigger remote code execution for five flaws.
  • The remaining flaws include a memory-corruption issue without demonstrated code execution and a flaw that can expose memory or crash a program.
  • Exposure depends on how applications handle attacker-controlled input, including building regexes from that input or converting the case of untrusted strings.
  • Ruby released fixes in versions 4.0.10, 3.4.13 and 3.3.14; updating gems or frameworks does not replace the vulnerable interpreter.
  • The project says no attacks have been reported and has requested CVE numbers; the advisories currently use GitHub advisory IDs.
  • Applications should update the Ruby interpreter used by servers, workers and container images, then restart or rebuild them.

Article Details

Vulnerability Types
  • Memory-safety flaws in Ruby's regular expression engine
  • Memory-safety flaws in Ruby's string case-conversion code
Severity
Three flaws are rated critical, three high, and one moderate.
Exploitation Status
not_reported
Exploit Availability
claimed_or_private
Patch Status
available
Workarounds
  • For older Ruby versions that will not receive a fix, move to a supported line.

People

Products

Related Articles