openEuler Security Advisory
OESA-2024-1433
ruby security update
Details
Ruby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).
Security Fix(es):
A buffer overread flaw was found in rubygem StringIO. The ungetbyte and ungetc methods on a StringIO object can read past the end of a string, and a subsequent call to StringIO.gets may return the memory value.(CVE-2024-27280)
A flaw was found in Rubygem RDoc. When parsing .rdoc_options used for configuration in RDoc as a YAML file there are no restrictions on the classes that can be restored. This issue may lead to object injection, resulting in remote code execution.(CVE-2024-27281)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:20.03-LTS-SP1 | ruby | All versions before 2.5.8-122.oe1 (fixed in 2.5.8-122.oe1) |
| openEuler:20.03-LTS-SP4 | ruby | All versions before 2.5.8-122.oe2003sp4 (fixed in 2.5.8-122.oe2003sp4) |
| openEuler:22.03-LTS | ruby | All versions before 3.0.3-132.oe2203sp3 (fixed in 3.0.3-132.oe2203sp3) |
| openEuler:22.03-LTS-SP1 | ruby | All versions before 3.0.3-132.oe2203sp1 (fixed in 3.0.3-132.oe2203sp1) |
| openEuler:22.03-LTS-SP2 | ruby | All versions before 3.0.3-132.oe2203sp2 (fixed in 3.0.3-132.oe2203sp2) |
| openEuler:22.03-LTS-SP3 | ruby | All versions before 3.0.3-132.oe2203sp3 (fixed in 3.0.3-132.oe2203sp3) |