Multiple integer overflows in the rb_str_buf_append function in Ruby 1.8.4 and earlier…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Complete · Complete · Complete
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-189 and the CVSS impact.
Summary
Multiple integer overflows in the rb_str_buf_append 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 allow context-dependent attackers to execute arbitrary code or cause a denial of service via unknown vectors that trigger memory corruption, a different issue than CVE-2008-2663, CVE-2008-2664, and CVE-2008-2725. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. This CVE description should be regarded as authoritative, although it is likely to change.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | up to 1.8.4; after 1.8.5, before 1.8.5.231; 1.8.6 to before 1.8.6.230; 1.8.7 to before 1.8.7.22; 1.9.0 to before 1.9.0.2 | Vulnerable | ruby |
| cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* | 4.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* | 6.06 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* | 7.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* | 7.10 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:lts:*:*:* | 8.04 | Vulnerable | Canonical |
- cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* Versions up to 1.8.4; after 1.8.5, before 1.8.5.231; 1.8.6 to before 1.8.6.230; 1.8.7 to before 1.8.7.22; 1.9.0 to before 1.9.0.2 Vulnerable ·ruby
- cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* Versions 6.06 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* Versions 7.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* Versions 7.10 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:lts:*:*:* Versions 8.04 Vulnerable ·Canonical
Remediation
Red Hat 4 advisories
- RHSA-2026:8838 Released 2026-04-17 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby4.0-4.0.0-33.3.hum1@aarch64, ruby4.0-4.0.0-33.3.hum1@src, ruby4.0-4.0.0-33.3.hum1@x86_64 +10
- RHSA-2026:7307 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.4-3.4.8-31.1.hum1@aarch64, ruby3.4-3.4.8-31.1.hum1@src, ruby3.4-3.4.8-31.1.hum1@x86_64 +10
- RHSA-2026:7305 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.3-3.3.10-23.1.hum1@aarch64, ruby3.3-3.3.10-23.1.hum1@src, ruby3.3-3.3.10-23.1.hum1@x86_64 +10
Show 1 more Red Hat advisories
- RHSA-2008:0561 Released 2008-07-14 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux (v. 5 server) ruby-1.8.5-5.el5_2.3, ruby-1.8.5-5.el5_2.3.i386, ruby-1.8.5-5.el5_2.3.ia64 +33
- Red Hat Enterprise Linux AS version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, irb-1.8.1-7.el4_6.1.ia64 +25
- Red Hat Enterprise Linux Desktop (v. 5 client) ruby-1.8.5-5.el5_2.3, ruby-1.8.5-5.el5_2.3.i386, ruby-docs-1.8.5-5.el5_2.3 +11
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby-1.8.5-5.el5_2.3, ruby-devel-1.8.5-5.el5_2.3, ruby-devel-1.8.5-5.el5_2.3.i386 +2
- Red Hat Enterprise Linux Desktop version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, ruby-1.8.1-7.el4_6.1 +11
- Red Hat Enterprise Linux ES version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, irb-1.8.1-7.el4_6.1.ia64 +18
- Red Hat Enterprise Linux WS version 4 irb-1.8.1-7.el4_6.1, irb-1.8.1-7.el4_6.1.i386, irb-1.8.1-7.el4_6.1.ia64 +18
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2008:0561 |
| Red Hat Hardened Images | Fixed | RHSA-2026:7305, RHSA-2026:7307, RHSA-2026:8838 |
Timeline
- 2026-10-02 Threatist record created from CVE-2008-2662
- 2026-10-03 Alias added: GHSA-6wwf-x53r-5qqq
References
Advisory 21
- SUSE-SR:2008:017
- http://support.apple.com/kb/HT2163
- http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities
- MDVSA-2008:141
- ADV-2008-1981
- ADV-2008-1907
- DSA-1618
- http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/
- SSA:2008-179-01
- APPLE-SA-2008-06-30
- http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html
- oval:org.mitre.oval:def:11601
- FEDORA-2008-5649
- MDVSA-2008:140
- RHSA-2008:0561
- DSA-1612
- GLSA-200812-17
- MDVSA-2008:142
- http://www.ruby-forum.com/topic/157034
- http://blog.phusion.nl/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue/
- USN-621-1
Sources
- CVE-2008-2662 · CVE Program
- CVE-2008-2662 · NVD
- FIRST EPSS
- GHSA-6wwf-x53r-5qqq · GitHub Advisory Database · CC BY 4.0
- CVE-2008-2662 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences