CVE-2008-2725
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | ruby | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-devel | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-docs | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-irb | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-libs | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-mode | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-rdoc | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-ri | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-tcltk | Fixed | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | irb | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | ruby | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | ruby-devel | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | ruby-docs | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | ruby-libs | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | ruby-mode | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 4 | ruby-tcltk | Fixed | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 3 | irb | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-devel | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-docs | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-libs | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-mode | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-tcltk | Fixed | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 2 | irb | Fixed | 0:1.6.4-6.el2 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 2 | ruby | Fixed | 0:1.6.4-6.el2 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 2 | ruby-devel | Fixed | 0:1.6.4-6.el2 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 2 | ruby-docs | Fixed | 0:1.6.4-6.el2 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 2 | ruby-libs | Fixed | 0:1.6.4-6.el2 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 2 | ruby-tcltk | Fixed | 0:1.6.4-6.el2 | RHSA-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:
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html (vendor-advisory)
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141 (vendor-advisory)
- http://www.debian.org/security/2008/dsa-1618 (vendor-advisory)
- http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security… (vendor-advisory)
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html (vendor-advisory)
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html (vendor-advisory)
References
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- http://support.apple.com/kb/HT2163
- http://secunia.com/advisories/31090
- http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
- http://secunia.com/advisories/30875
- http://www.vupen.com/english/advisories/2008/1981/references
- http://www.vupen.com/english/advisories/2008/1907/references
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9606
- http://www.debian.org/security/2008/dsa-1618
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-2727
- http://secunia.com/advisories/31687
- http://secunia.com/advisories/30894
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43350
- http://secunia.com/advisories/31062
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.