ADVISORIES

openEuler Security Advisory

OESA-2025-1640

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):

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when net-imap reads server responses. At any time while the client is connected, a malicious server can send can send a "literal" byte count, which is automatically read by the client's receiver thread. The response reader immediately allocates memory for the number of bytes indicated by the server response. This should not be an issue when securely connecting to trusted IMAP servers that are well-behaved. It can affect insecure connections and buggy, untrusted, or compromised servers (for example, connecting to a user supplied hostname). This issue has been patched in versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5.(CVE-2025-43857)

Affected packages

EcosystemPackageAffected versions
openEuler:22.03-LTS-SP3ruby
All versions before 3.0.3-143.oe2203sp3 (fixed in 3.0.3-143.oe2203sp3)
openEuler:22.03-LTS-SP4ruby
All versions before 3.0.3-143.oe2203sp4 (fixed in 3.0.3-143.oe2203sp4)
openEuler:24.03-LTSruby
All versions before 3.2.2-150.oe2403sp1 (fixed in 3.2.2-150.oe2403sp1)
openEuler:24.03-LTS-SP1ruby
All versions before 3.2.2-150.oe2403sp1 (fixed in 3.2.2-150.oe2403sp1)
openEuler:20.03-LTS-SP4ruby
All versions before 2.5.8-134.oe2003sp4 (fixed in 2.5.8-134.oe2003sp4)

References