CVE-2008-2725 json
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 2008-06-24 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-2718
- cvss
- 7.8
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- ruby-lang ruby 1.8.5.231, 1.8.6.230, 1.8.7.22
- ruby4.0 hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-libs hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-bundled-gems hummingbird 1 4.0.0-33.3.hum1
- ruby4.0-default-gems hummingbird 1 4.0.0-33.3.hum1
- ruby3.3 hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-libs hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-bundled-gems hummingbird 1 3.3.10-23.1.hum1
- ruby3.3-default-gems hummingbird 1 3.3.10-23.1.hum1
red hat advisories RHSA-2026:8838RHSA-2026:7305RHSA-2026:7307RHSA-2008:0562RHSA-2008:0561
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-2725 updated
ruby: integer overflow in rb_ary_splice/update/replace() - REALLOC_N
-
Red Hat Desktop version 3 irb 1.6.8-12.el3, ruby 1.6.8-12.el3, ruby-libs 1.6.8-12.el3, ruby-mode 1.6.8-12.el3, ruby-tcltk 1.6.8-12.el3fixed: vendor fix RHSA-2008:0562
-
Red Hat Enterprise Linux (v. 5 server) ruby 1.8.5-5.el5_2.3, ruby-ri 1.8.5-5.el5_2.3, ruby-irb 1.8.5-5.el5_2.3, ruby-libs 1.8.5-5.el5_2.3, ruby-mode 1.8.5-5.el5_2.3, ruby-rdoc 1.8.5-5.el5_2.3, +1 morefixed: vendor fix RHSA-2008:0561
-
Red Hat Enterprise Linux AS (Advanced Server) version 2.1 irb 1.6.4-6.el2, ruby 1.6.4-6.el2, ruby-libs 1.6.4-6.el2, ruby-tcltk 1.6.4-6.el2 Red Hat Enterprise Linux AS version 3 irb 1.6.8-12.el3, ruby 1.6.8-12.el3, ruby-libs 1.6.8-12.el3, ruby-mode 1.6.8-12.el3, ruby-tcltk 1.6.8-12.el3fixed: vendor fix RHSA-2008:0562
-
Red Hat Enterprise Linux AS version 4 irb 1.8.1-7.el4_6.1, ruby 1.8.1-7.el4_6.1, ruby-libs 1.8.1-7.el4_6.1, ruby-mode 1.8.1-7.el4_6.1, ruby-tcltk 1.8.1-7.el4_6.1 Red Hat Enterprise Linux Desktop (v. 5 client) ruby 1.8.5-5.el5_2.3, ruby-ri 1.8.5-5.el5_2.3, ruby-irb 1.8.5-5.el5_2.3, ruby-libs 1.8.5-5.el5_2.3, ruby-mode 1.8.5-5.el5_2.3, ruby-rdoc 1.8.5-5.el5_2.3, +1 more Red Hat Enterprise Linux Desktop version 4 irb 1.8.1-7.el4_6.1, ruby 1.8.1-7.el4_6.1, ruby-libs 1.8.1-7.el4_6.1, ruby-mode 1.8.1-7.el4_6.1, ruby-tcltk 1.8.1-7.el4_6.1 Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby 1.8.5-5.el5_2.3, ruby-ri 1.8.5-5.el5_2.3, ruby-irb 1.8.5-5.el5_2.3, ruby-libs 1.8.5-5.el5_2.3, ruby-mode 1.8.5-5.el5_2.3, ruby-rdoc 1.8.5-5.el5_2.3, +1 morefixed: vendor fix RHSA-2008:0561
-
Red Hat Enterprise Linux ES version 2.1 irb 1.6.4-6.el2, ruby 1.6.4-6.el2, ruby-libs 1.6.4-6.el2, ruby-tcltk 1.6.4-6.el2 Red Hat Enterprise Linux ES version 3 irb 1.6.8-12.el3, ruby 1.6.8-12.el3, ruby-libs 1.6.8-12.el3, ruby-mode 1.6.8-12.el3, ruby-tcltk 1.6.8-12.el3fixed: vendor fix RHSA-2008:0562
-
Red Hat Enterprise Linux ES version 4 irb 1.8.1-7.el4_6.1, ruby 1.8.1-7.el4_6.1, ruby-libs 1.8.1-7.el4_6.1, ruby-mode 1.8.1-7.el4_6.1, ruby-tcltk 1.8.1-7.el4_6.1fixed: vendor fix RHSA-2008:0561
-
Red Hat Enterprise Linux WS version 2.1 irb 1.6.4-6.el2, ruby 1.6.4-6.el2, ruby-libs 1.6.4-6.el2, ruby-tcltk 1.6.4-6.el2 Red Hat Enterprise Linux WS version 3 irb 1.6.8-12.el3, ruby 1.6.8-12.el3, ruby-libs 1.6.8-12.el3, ruby-mode 1.6.8-12.el3, ruby-tcltk 1.6.8-12.el3fixed: vendor fix RHSA-2008:0562
-
Red Hat Enterprise Linux WS version 4 irb 1.8.1-7.el4_6.1, ruby 1.8.1-7.el4_6.1, ruby-libs 1.8.1-7.el4_6.1, ruby-mode 1.8.1-7.el4_6.1, ruby-tcltk 1.8.1-7.el4_6.1fixed: vendor fix RHSA-2008:0561
show 1 moreshow fewer
-
Red Hat Hardened Images ruby3.4 3.4.8-31.1.hum1, ruby4.0 4.0.0-33.3.hum1, ruby3.3 3.3.10-23.1.hum1, ruby3.4-default-gems 3.4.8-31.1.hum1, ruby4.0-default-gems 4.0.0-33.3.hum1, ruby3.3-default-gems 3.3.10-23.1.hum1fixed: vendor fix RHSA-2026:7305
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.70% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Classification
- Weakness
-
- CWE-189 Numeric Errors
References
-
ruby-lang.org
/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/
patch, vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2008-08/msg00006.html
vendor-advisory, third-party-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2008:141
vendor-advisory, third-party-advisory
-
debian.org
/security/2008/dsa-1618
vendor-advisory, third-party-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.429562
vendor-advisory, third-party-advisory
-
lists.apple.com
/archives/security-announce/2008//Jun/msg00002.html
vendor-advisory, mailing-list, third-party-advisory
-
redhat.com
/archives/fedora-package-announce/2008-June/msg00937.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2008:140
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2008-0561.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2008/dsa-1612
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/glsa-200812-17.xml
vendor-advisory, third-party-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2008:142
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/usn-621-1
vendor-advisory, third-party-advisory
-
support.apple.com
/kb/HT2163
third-party-advisory
-
secunia.com
/advisories/31090
third-party-advisory
-
weblog.rubyonrails.org
/2008/6/21/multiple-ruby-security-vulnerabilities
third-party-advisory
-
secunia.com
/advisories/30875
third-party-advisory
-
vupen.com
/english/advisories/2008/1981/references
vdb-entry, third-party-advisory
-
vupen.com
/english/advisories/2008/1907/references
vdb-entry, third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9606
vdb-entry, signature
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2008-2727
issue-tracking, third-party-advisory
-
secunia.com
/advisories/31687
third-party-advisory
-
secunia.com
/advisories/30894
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/43350
vdb-entry, third-party-advisory
-
secunia.com
/advisories/31062
third-party-advisory
-
secunia.com
/advisories/31256
third-party-advisory
-
securityfocus.com
/archive/1/493688/100/0/threaded
mailing-list, third-party-advisory, vdb-entry
-
matasano.com
/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/
third-party-advisory
-
securitytracker.com
/id?1020347
vdb-entry, third-party-advisory
-
rubyinside.com
/june-2008-ruby-security-vulnerabilities-927.html
third-party-advisory
-
redhat.com
/archives/fedora-security-commits/2008-June/msg00005.html
mailing-list, third-party-advisory
-
wiki.rpath.com
/wiki/Advisories:rPSA-2008-0206
broken-link
-
bugs.launchpad.net
/ubuntu/+source/ruby1.8/+bug/241657
third-party-advisory
-
secunia.com
/advisories/30802
third-party-advisory
-
secunia.com
/advisories/30831
third-party-advisory
- issues.rpath.com /browse/RPL-2626
-
secunia.com
/advisories/33178
third-party-advisory
-
securityfocus.com
/bid/29903
vdb-entry, third-party-advisory
-
zedshaw.com
/rants/the_big_ruby_vulnerabilities.html
broken-link
-
secunia.com
/advisories/30867
third-party-advisory
-
blog.phusion.nl
/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue/
third-party-advisory
-
secunia.com
/advisories/31181
third-party-advisory
-
ruby-forum.com
/topic/157034
third-party-advisory
Sources
- CVE List CVE-2008-2725
- NVD CVE-2008-2725
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.