ruby: Unsafe use of alloca in rb_str_format()
Published Jun 24, 2008
7.8
HIGHCVSS 2.0
EPSS 4.28%
Description
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.
Affected products
No data.
Configuration 1
Configuration 2
- 4.0
Configuration 3
- 6.06
- 7.04
- 7.10
- 8.04
No data.
Red Hat Enterprise Linux 2.1
ruby-0:1.6.4-6.el2
Fixed · RHSA-2008:0562
Red Hat Enterprise Linux 3
ruby-0:1.6.8-12.el3
Fixed · RHSA-2008:0562
Red Hat Enterprise Linux 4
ruby-0:1.8.1-7.el4_6.1
Fixed · RHSA-2008:0561
Red Hat Enterprise Linux 5
ruby-0:1.8.5-5.el5_2.3
Fixed · RHSA-2008:0561
Red Hat Hardened Images
ruby3-3-main-3.3.10-23.1.hum1
Fixed · RHSA-2026:7305
Red Hat Hardened Images
ruby3-4-main-3.4.8-31.1.hum1
Fixed · RHSA-2026:7307
Red Hat Hardened Images
ruby4-0-main-4.0.0-33.3.hum1
Fixed · RHSA-2026:8838
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 2.1 | ruby-0:1.6.4-6.el2 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux 3 | ruby-0:1.6.8-12.el3 | Fixed | RHSA-2008:0562 |
| Red Hat Enterprise Linux 4 | ruby-0:1.8.1-7.el4_6.1 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux 5 | ruby-0:1.8.5-5.el5_2.3 | Fixed | RHSA-2008:0561 |
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.1.hum1 | Fixed | RHSA-2026:7305 |
| Red Hat Hardened Images | ruby3-4-main-3.4.8-31.1.hum1 | Fixed | RHSA-2026:7307 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.3.hum1 | Fixed | RHSA-2026:8838 |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:N/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.28% (0.04280) | 90.80th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.28% (0.04280) | 89.79th | v5 (v2026.06.15) |
| Jun 3, 2026 | 5.12% (0.05116) | 90.01th | v4 (v2025.03.14) |
| Jun 1, 2026 | 11.36% (0.11361) | 93.68th | v4 (v2025.03.14) |
| Nov 30, 2025 | 6.31% (0.06315) | 90.58th | v4 (v2025.03.14) |
| Jul 22, 2025 | 4.01% (0.04012) | 87.96th | v4 (v2025.03.14) |
| Apr 26, 2025 | 5.35% (0.05350) | 89.50th | v4 (v2025.03.14) |
| Apr 23, 2025 | 4.13% (0.04127) | 87.98th | v4 (v2025.03.14) |
| Mar 30, 2025 | 5.35% (0.05350) | 89.10th | v4 (v2025.03.14) |
| Mar 29, 2025 | 12.50% (0.12501) | 89.85th | v4 (v2025.03.14) |
| Mar 21, 2025 | 5.35% (0.05350) | 89.21th | v4 (v2025.03.14) |
| Mar 17, 2025 | 7.19% (0.07192) | 90.94th | v4 (v2025.03.14) |
| Dec 17, 2024 | 1.90% (0.01895) | 88.21th | v3 (v2023.03.01) |
| Dec 12, 2024 | 0.49% (0.00487) | 76.82th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.44% (0.00436) | 73.96th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.44% (0.00436) | 70.69th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
References (44)
- http://blog.phusion.nl/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue/ x_refsource_MISCThird Party Advisory
- http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html vendor-advisoryx_refsource_APPLEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html vendor-advisoryx_refsource_SUSEThird Party Advisory
- http://secunia.com/advisories/30802 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/30831 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/30867 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/30875 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/30894 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/31062 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/31090 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/31181 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/31256 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/31687 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/33178 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://security.gentoo.org/glsa/glsa-200812-17.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.429562 vendor-advisoryx_refsource_SLACKWAREMailing ListThird Party Advisory
- http://support.apple.com/kb/HT2163 x_refsource_CONFIRMThird Party Advisory
- http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities x_refsource_MISCThird Party Advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0206 x_refsource_CONFIRMBroken Link
- http://www.debian.org/security/2008/dsa-1612 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.debian.org/security/2008/dsa-1618 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:140 vendor-advisoryx_refsource_MANDRIVAThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:141 vendor-advisoryx_refsource_MANDRIVAThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:142 vendor-advisoryx_refsource_MANDRIVAThird Party Advisory
- http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/ x_refsource_MISCThird Party Advisory
- http://www.redhat.com/support/errata/RHSA-2008-0561.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.ruby-forum.com/topic/157034 x_refsource_MISCThird Party Advisory
- http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/ x_refsource_CONFIRMPatchVendor Advisory
- http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html x_refsource_MISCThird Party Advisory
- http://www.securityfocus.com/archive/1/493688/100/0/threaded mailing-listx_refsource_BUGTRAQThird Party AdvisoryVDB Entry
- http://www.securityfocus.com/bid/29903 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id?1020347 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- http://www.ubuntu.com/usn/usn-621-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- http://www.vupen.com/english/advisories/2008/1907/references vdb-entryx_refsource_VUPENThird Party Advisory
- http://www.vupen.com/english/advisories/2008/1981/references vdb-entryx_refsource_VUPENThird Party Advisory
- http://www.zedshaw.com/rants/the_big_ruby_vulnerabilities.html x_refsource_MISCBroken Link
- https://access.redhat.com/security/cve/CVE-2008-2664 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=450834 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43348 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://issues.rpath.com/browse/RPL-2626 x_refsource_CONFIRMBroken Link
- https://nvd.nist.gov/vuln/detail/CVE-2008-2664
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9646 vdb-entrysignaturex_refsource_OVALThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2008-2664
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html vendor-advisoryx_refsource_FEDORAThird Party Advisory
Change history (0)
No recorded changes yet.