CVE-2008-2664 Resource Management Errors
No CVSS score yet. EPSS 4.3% estimated probability of exploitation activity in the next 30 days.
On this page
The rb_str_format function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, 1.8.7 before 1.8.7-p22, and 1.9.0 before 1.9.0-2 allows context-dependent attackers to trigger memory corruption via unspecified vectors related to alloca, a different issue than CVE-2008-2662, CVE-2008-2663, and CVE-2008-2725. 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
- 4.3% (unchanged from 4.3% a week ago; 4.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-399 Resource Management Errors
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
- Debian, Red Hat: fixed package versions per release
- Patch: http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/
- Vendor advisory: http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/
Ask an AI about this CVE
Show the prompt
Explain CVE-2008-2664 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2008-2664?via=ask-ai-copy and https://cve.bz/cve/CVE-2008-2664?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-2664 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.
| Product | Affected |
|---|---|
| ruby-lang:ruby | through 1.8.4 |
| ruby-lang:ruby | after 1.8.5 before 1.8.5.231 |
| ruby-lang:ruby | from 1.8.6 before 1.8.6.230 |
| ruby-lang:ruby | from 1.8.7 before 1.8.7.22 |
| ruby-lang:ruby | from 1.9.0 before 1.9.0.2 |
| debian:debian_linux | 4.0 |
| canonical:ubuntu_linux | 6.06 |
| canonical:ubuntu_linux | 7.04 |
| canonical:ubuntu_linux | 7.10 |
| canonical:ubuntu_linux | 8.04 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| 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 |
| Red Hat | enterprise_linux:2.1::as, enterprise_linux:2.1::es, enterprise_linux:2.1::ws | irb, ruby, ruby-docs and 3 more | 0:1.6.4-6.el2 | RHSA-2008:0562 |
| Red Hat | enterprise_linux:3::as, enterprise_linux:3::desktop, enterprise_linux:3::es and 1 more | irb, ruby, ruby-docs and 5 more | 0:1.6.8-12.el3 | RHSA-2008:0562 |
| Red Hat | enterprise_linux:4::as, enterprise_linux:4::desktop, enterprise_linux:4::es and 1 more | irb, ruby, ruby-docs and 5 more | 0:1.8.1-7.el4_6.1 | RHSA-2008:0561 |
| Red Hat | enterprise_linux:5::client | ruby, ruby-ri, ruby-irb and 5 more | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat | enterprise_linux:5::client_workstation | ruby, ruby-mode, ruby-devel and 1 more | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat | enterprise_linux:5::server | ruby, ruby-ri, ruby-irb and 7 more | 0:1.8.5-5.el5_2.3 | RHSA-2008:0561 |
| Red Hat | hummingbird:1 | ruby3.3, ruby3.3-doc, ruby3.3-libs and 3 more | 0:3.3.10-23.1.hum1 | RHSA-2026:7305 |
| Red Hat | hummingbird:1 | ruby3.4, ruby3.4-doc, ruby3.4-libs and 3 more | 0:3.4.8-31.1.hum1 | RHSA-2026:7307 |
| Red Hat | hummingbird:1 | ruby4.0, ruby4.0-doc, ruby4.0-libs and 3 more | 0:4.0.0-33.3.hum1 | RHSA-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 Low.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 2.1 | ruby-0:1.6.4-6.el2 | Fixed 2008-07-14 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-0:1.6.8-12.el3 | Fixed 2008-07-14 | RHSA-2008:0562 |
| Red Hat Enterprise Linux 4 | ruby-0:1.8.1-7.el4_6.1 | Fixed 2008-07-14 | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-0:1.8.5-5.el5_2.3 | Fixed 2008-07-14 | RHSA-2008:0561 |
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.1.hum1 | Fixed 2026-04-09 | RHSA-2026:7305 |
| Red Hat Hardened Images | ruby3-4-main-3.4.8-31.1.hum1 | Fixed 2026-04-09 | RHSA-2026:7307 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.3.hum1 | Fixed 2026-04-17 | RHSA-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-2664.
References
- http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/
- http://blog.phusion.nl/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue/
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
- http://secunia.com/advisories/30802
- http://secunia.com/advisories/30831
- http://secunia.com/advisories/30867
- http://secunia.com/advisories/30875
- http://secunia.com/advisories/30894
- http://secunia.com/advisories/31062
- http://secunia.com/advisories/31090
- http://secunia.com/advisories/31181
- http://secunia.com/advisories/31256
- http://secunia.com/advisories/31687
- http://secunia.com/advisories/33178
- http://security.gentoo.org/glsa/glsa-200812-17.xml
- http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.429562
- http://support.apple.com/kb/HT2163
- http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0206
- http://www.debian.org/security/2008/dsa-1612
- http://www.debian.org/security/2008/dsa-1618
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:140
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:142
- http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/
- http://www.redhat.com/support/errata/RHSA-2008-0561.html
- http://www.ruby-forum.com/topic/157034
- http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html
- http://www.securityfocus.com/archive/1/493688/100/0/threaded
- http://www.securityfocus.com/bid/29903
- http://www.securitytracker.com/id?1020347
- http://www.ubuntu.com/usn/usn-621-1
- http://www.vupen.com/english/advisories/2008/1907/references
- http://www.vupen.com/english/advisories/2008/1981/references
- http://www.zedshaw.com/rants/the_big_ruby_vulnerabilities.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43348
- https://issues.rpath.com/browse/RPL-2626
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9646
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html