cve.bz

CVE-2008-2725 Numeric Errors

no score yetEPSS 3.7%Fix available

No CVSS score yet. EPSS 3.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.
EPSS
3.7% (unchanged from 3.7% a week ago; 3.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-189 Numeric Errors
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2008-2725 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2008-2725?via=ask-ai-copy and https://cve.bz/cve/CVE-2008-2725?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2008-2725 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:rubythrough 1.8.4
ruby-lang:rubyfrom 1.8.5 before 1.8.5.231
ruby-lang:rubyfrom 1.8.6 before 1.8.6.230
ruby-lang:rubyfrom 1.8.7 before 1.8.7.22
debian:debian_linux4.0
canonical:ubuntu_linux6.06
canonical:ubuntu_linux7.04
canonical:ubuntu_linux7.10
canonical:ubuntu_linux8.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian4.0ruby1.81.8.5-4etch2DSA-1612-1
Debian4.0ruby1.91.9.0+20060609-1etch2DSA-1618-1
Red Hatenterprise_linux:2.1::as, enterprise_linux:2.1::es, enterprise_linux:2.1::wsirb, ruby, ruby-docs and 3 more0:1.6.4-6.el2RHSA-2008:0562
Red Hatenterprise_linux:3::as, enterprise_linux:3::desktop, enterprise_linux:3::es and 1 moreirb, ruby, ruby-docs and 5 more0:1.6.8-12.el3RHSA-2008:0562
Red Hatenterprise_linux:4::as, enterprise_linux:4::desktop, enterprise_linux:4::es and 1 moreirb, ruby, ruby-docs and 5 more0:1.8.1-7.el4_6.1RHSA-2008:0561
Red Hatenterprise_linux:5::clientruby, ruby-ri, ruby-irb and 5 more0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hatenterprise_linux:5::client_workstationruby, ruby-mode, ruby-devel and 1 more0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hatenterprise_linux:5::serverruby, ruby-ri, ruby-irb and 7 more0:1.8.5-5.el5_2.3RHSA-2008:0561
Red Hathummingbird:1ruby3.3, ruby3.3-doc, ruby3.3-libs and 3 more0:3.3.10-23.1.hum1RHSA-2026:7305
Red Hathummingbird:1ruby3.4, ruby3.4-doc, ruby3.4-libs and 3 more0:3.4.8-31.1.hum1RHSA-2026:7307
Red Hathummingbird:1ruby4.0, ruby4.0-doc, ruby4.0-libs and 3 more0:4.0.0-33.3.hum1RHSA-2026:8838

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 2.1ruby-0:1.6.4-6.el2Fixed 2008-07-14RHSA-2008:0562
Red Hat Enterprise Linux 3ruby-0:1.6.8-12.el3Fixed 2008-07-14RHSA-2008:0562
Red Hat Enterprise Linux 4ruby-0:1.8.1-7.el4_6.1Fixed 2008-07-14RHSA-2008:0561
Red Hat Enterprise Linux 5ruby-0:1.8.5-5.el5_2.3Fixed 2008-07-14RHSA-2008:0561
Red Hat Hardened Imagesruby3-3-main-3.3.10-23.1.hum1Fixed 2026-04-09RHSA-2026:7305
Red Hat Hardened Imagesruby3-4-main-3.4.8-31.1.hum1Fixed 2026-04-09RHSA-2026:7307
Red Hat Hardened Imagesruby4-0-main-4.0.0-33.3.hum1Fixed 2026-04-17RHSA-2026:8838

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2008-2725.

References

Check your stackJSON