Programming

Ruby Patches Seven Vulnerabilities in Regexp and String Case Conversion

The Ruby project has released fixed versions 4.0.10, 3.4.13 and 3.3.14 to address seven vulnerabilities in its regular expression engine and string case conversion. Some of the flaws could lead to remote code execution, and users are urged to upgrade.

Ruby Patches Seven Vulnerabilities in Regexp and String Case Conversion
Source: Ruby Programming Language

Seven security vulnerabilities have been found in Ruby's regular expression engine and in the code that changes the case of strings. The Ruby team says it is aware of proof-of-concept code showing that some of these flaws can be used to trigger remote code execution. Fixes are included in Ruby 4.0.10, 3.4.13 and 3.3.14, and the team strongly recommends upgrading.

The issues cover several types of memory errors. These include heap buffer overflows in string case conversion and regular expression compilation, a double free during regex compilation, an integer overflow in case conversion, and out-of-bounds reads during case-insensitive matching. Other flaws affect Regexp#to_s and case-insensitive backreference matching, where the impact may be information disclosure or a process crash. Applications that compile attacker-controlled patterns face the greatest risk.

Versions affected are Ruby 3.3.13 and earlier, Ruby 3.4.0 through 3.4.12, and Ruby 4.0.0 through 4.0.9. Ruby 3.3 is in its security maintenance phase and will receive these fixes, while Ruby 3.2 and earlier are no longer supported and will not.

CVE identifiers have been requested but not yet assigned, so the advisory refers to the flaws by their GitHub Security Advisory identifiers.

Source: Ruby Programming Language


Posted

in

by