Skip to content
OpenAdvisories
Unscored CVE-2008-2725 EUVD-2008-2718GHSA-924x-9756-qq8p

Integer overflow in the (1) rb_ary_splice function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, and 1.8.7 b…

Published Jun 24, 2008 · Updated Aug 7, 2024 · Assigned by redhat

Description

Integer overflow in the (1) rb_ary_splice function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, and 1.8.7 before 1.8.7-p22; and (2) the rb_ary_replace function in 1.6.x allows context-dependent attackers to trigger memory corruption via unspecified vectors, aka the "REALLOC_N" variant, a different issue than CVE-2008-2662, CVE-2008-2663, and CVE-2008-2664. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. The CVE description should be regarded as authoritative, although it is likely to change.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 4.0 ruby1.8 1.8.5-4etch2 DSA-1612-1
Debian 4.0 ruby1.9 1.9.0+20060609-1etch2 DSA-1618-1
ReleasePackageFixed inAdvisory
RHEL 5 ruby +8 1.8.5-5.el5_2.3 RHSA-2008:0561
RHEL 4 irb +6 1.8.1-7.el4_6.1 RHSA-2008:0561
RHEL 3 irb +6 1.6.8-12.el3 RHSA-2008:0562
RHEL 2 irb +5 1.6.4-6.el2 RHSA-2008:0562
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 ruby3.3 +5 3.3.10-23.1.hum1 RHSA-2026:7305
Red Hat Hardened Images 1 ruby3.4 +5 3.4.8-31.1.hum1 RHSA-2026:7307
Red Hat Hardened Images 1 ruby4.0 +5 4.0.0-33.3.hum1 RHSA-2026:8838

Advisories 7

References