Home / Ruby-lang / Ruby / CVE-2008-2664
CVE-2008-2664: is it exploited, and which versions of Ruby-lang Ruby are affected and fixed?
CVE-2008-2664 is a vulnerability in Ruby-lang Ruby. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: ruby through 1.8.4, ruby after 1.8.5 before 1.8.5.231, ruby from 1.8.6 before 1.8.6.230 and 7 more (NVD). Fixed in 1.8.5.231, 1.8.6.230, 1.8.7.22 and 1.9.0.2 (NVD). Severity: High (7.8, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:52 UTC.
What is CVE-2008-2664?
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.
From the CVE record by mitre, last updated August 7, 2024, 09:05 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ruby-lang | ruby | through 1.8.4 | application |
| ruby-lang | ruby | after 1.8.5 before 1.8.5.231 | application |
| ruby-lang | ruby | from 1.8.6 before 1.8.6.230 | application |
| ruby-lang | ruby | from 1.8.7 before 1.8.7.22 | application |
| ruby-lang | ruby | from 1.9.0 before 1.9.0.2 | application |
| debian | debian linux | 4.0 | operating system |
| canonical | ubuntu linux | 6.06 | operating system |
| canonical | ubuntu linux | 7.04 | operating system |
| canonical | ubuntu linux | 7.10 | operating system |
| canonical | ubuntu linux | 8.04 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 22:54 UTC.
How severe is CVE-2008-2664?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2008-2664 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.28% probability of exploitation activity in the next 30 days, percentile 91.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- SUSE-SR:2008:017 vendor-advisory, x_refsource_SUSE
- http://support.apple.com/kb/HT2163 x_refsource_CONFIRM
- 31090 third-party-advisory, x_refsource_SECUNIA
- http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities x_refsource_MISC
- MDVSA-2008:141 vendor-advisory, x_refsource_MANDRIVA
- 30875 third-party-advisory, x_refsource_SECUNIA
- ruby-rbstrformat-code-execution(43348) vdb-entry, x_refsource_XF
- ADV-2008-1981 vdb-entry, x_refsource_VUPEN
- ADV-2008-1907 vdb-entry, x_refsource_VUPEN
- DSA-1618 vendor-advisory, x_refsource_DEBIAN
- 31687 third-party-advisory, x_refsource_SECUNIA
- 30894 third-party-advisory, x_refsource_SECUNIA
- 31062 third-party-advisory, x_refsource_SECUNIA
- 31256 third-party-advisory, x_refsource_SECUNIA
- 20080626 rPSA-2008-0206-1 ruby mailing-list, x_refsource_BUGTRAQ
- http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/ x_refsource_MISC
- SSA:2008-179-01 vendor-advisory, x_refsource_SLACKWARE
- APPLE-SA-2008-06-30 vendor-advisory, x_refsource_APPLE
- 1020347 vdb-entry, x_refsource_SECTRACK
- http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html x_refsource_MISC
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0206 x_refsource_CONFIRM
- FEDORA-2008-5649 vendor-advisory, x_refsource_FEDORA
- MDVSA-2008:140 vendor-advisory, x_refsource_MANDRIVA
- 30802 third-party-advisory, x_refsource_SECUNIA
- 30831 third-party-advisory, x_refsource_SECUNIA
- oval:org.mitre.oval:def:9646 vdb-entry, signature, x_refsource_OVAL
- RHSA-2008:0561 vendor-advisory, x_refsource_REDHAT
- https://issues.rpath.com/browse/RPL-2626 x_refsource_CONFIRM
- DSA-1612 vendor-advisory, x_refsource_DEBIAN
- GLSA-200812-17 vendor-advisory, x_refsource_GENTOO
- 33178 third-party-advisory, x_refsource_SECUNIA
- 29903 vdb-entry, x_refsource_BID
- http://www.zedshaw.com/rants/the_big_ruby_vulnerabilities.html x_refsource_MISC
- 30867 third-party-advisory, x_refsource_SECUNIA
- MDVSA-2008:142 vendor-advisory, x_refsource_MANDRIVA
- http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ x_refsource_CONFIRM
- http://www.ruby-forum.com/topic/157034 x_refsource_MISC
- http://blog.phusion.nl/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue/ x_refsource_MISC
- USN-621-1 vendor-advisory, x_refsource_UBUNTU
- 31181 third-party-advisory, x_refsource_SECUNIA
When was it published, and where is the official record?
- Reserved
- June 10, 2008
- Published
- June 24, 2008, 19:00 UTC
- CVE record updated
- August 7, 2024, 09:05 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 22:54 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:52 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Ruby?
- Nov 19, 2026CVE-2026-132825 ruby-lang Ruby: heap buffer overflow
- May 22, 2026CVE-2026-46727 ruby-lang Ruby: race condition
- Mar 31, 2023CVE-2023-28756 Ruby-lang Ruby: regular expression denial of service (ReDoS)
- Nov 18, 2022CVE-2021-33621 Ruby-lang Cgi: injection
- May 9, 2022CVE-2022-28739 Ruby-lang Ruby: out-of-bounds read
- May 9, 2022CVE-2022-28738 Ruby-lang Ruby: double free
- Jan 1, 2022CVE-2021-41819 Ruby-lang Cgi: trust in cookies without checks
- Jan 1, 2022CVE-2021-41817 Ruby-lang Date: regular expression denial of service (ReDoS)
Questions about CVE-2008-2664
Is CVE-2008-2664 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 4.28% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Ruby-lang Ruby are affected by CVE-2008-2664?
ruby through 1.8.4, ruby after 1.8.5 before 1.8.5.231, ruby from 1.8.6 before 1.8.6.230, ruby from 1.8.7 before 1.8.7.22, ruby from 1.9.0 before 1.9.0.2, debian linux 4.0 and 4 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2008-2664?
1.8.5.231, 1.8.6.230, 1.8.7.22 and 1.9.0.2, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2008-2664?
High (7.8, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2008-2664?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.