CVEfocus › CVE database › CVE-2008-2725

CVE-2008-2725

EPSS 3.7% (higher than 90% of CVEs)Published 2008-06-24Updated 2024-08-07Assigner: redhat

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.

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

29Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 5rubyFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-develFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-docsFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-irbFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-libsFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-modeFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-rdocFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-riFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-tcltkFixed0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hat Enterprise Linux 4irbFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 4rubyFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 4ruby-develFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 4ruby-docsFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 4ruby-libsFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 4ruby-modeFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 4ruby-tcltkFixed0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hat Enterprise Linux 3irbFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 3rubyFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 3ruby-develFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 3ruby-docsFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 3ruby-libsFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 3ruby-modeFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 3ruby-tcltkFixed0:1.6.8-12.el3RHSA-2008:0562
Red Hat Enterprise Linux 2irbFixed0:1.6.4-6.el2RHSA-2008:0562
Red Hat Enterprise Linux 2rubyFixed0:1.6.4-6.el2RHSA-2008:0562
Red Hat Enterprise Linux 2ruby-develFixed0:1.6.4-6.el2RHSA-2008:0562
Red Hat Enterprise Linux 2ruby-docsFixed0:1.6.4-6.el2RHSA-2008:0562
Red Hat Enterprise Linux 2ruby-libsFixed0:1.6.4-6.el2RHSA-2008:0562
Red Hat Enterprise Linux 2ruby-tcltkFixed0:1.6.4-6.el2RHSA-2008:0562

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.