Vulnerability Name:

CVE-2008-2662 (CCN-43345)

Assigned:2008-06-20
Published:2008-06-20
Updated:2018-11-01
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.
CVSS v3 Severity:7.3 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:10.0 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
7.4 High (Temporal CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
6.8 Medium (CCN CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P)
5.0 Medium (CCN Temporal CVSS v2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-189
CWE-190
Vulnerability Consequences:Gain Access
References:Source: MISC
Type: Third Party Advisory
http://blog.phusion.nl/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue/

Source: MITRE
Type: CNA
CVE-2008-2662

Source: APPLE
Type: Mailing List, Third Party Advisory
APPLE-SA-2008-06-30

Source: SUSE
Type: Third Party Advisory
SUSE-SR:2008:017

Source: CCN
Type: RHSA-2008-0561
Moderate: ruby security update

Source: CCN
Type: SA30802
Apple Mac OS X Security Update Fixes Multiple Vulnerabilities

Source: SECUNIA
Type: Third Party Advisory
30802

Source: SECUNIA
Type: Third Party Advisory
30831

Source: SECUNIA
Type: Third Party Advisory
30867

Source: SECUNIA
Type: Third Party Advisory
30875

Source: SECUNIA
Type: Third Party Advisory
30894

Source: SECUNIA
Type: Third Party Advisory
31062

Source: SECUNIA
Type: Third Party Advisory
31181

Source: SECUNIA
Type: Third Party Advisory
31256

Source: SECUNIA
Type: Third Party Advisory
31687

Source: SECUNIA
Type: Third Party Advisory
33178

Source: GENTOO
Type: Third Party Advisory
GLSA-200812-17

Source: CCN
Type: SECTRACK ID: 1020347
Ruby Bugs Let Users Deny Service and Execute Arbitrary Code

Source: SLACKWARE
Type: Mailing List, Third Party Advisory
SSA:2008-179-01

Source: CONFIRM
Type: Third Party Advisory
http://support.apple.com/kb/HT2163

Source: CCN
Type: ASA-2008-295
ruby security update (RHSA-2008-0561)

Source: MISC
Type: Third Party Advisory
http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities

Source: CONFIRM
Type: Broken Link
http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0206

Source: DEBIAN
Type: Third Party Advisory
DSA-1612

Source: DEBIAN
Type: Third Party Advisory
DSA-1618

Source: DEBIAN
Type: DSA-1612
ruby1.8 -- several vulnerabilities

Source: DEBIAN
Type: DSA-1618
ruby1.9 -- several vulnerabilities

Source: CCN
Type: GLSA-200812-17
Ruby: Multiple vulnerabilities

Source: MANDRIVA
Type: Third Party Advisory
MDVSA-2008:140

Source: MANDRIVA
Type: Third Party Advisory
MDVSA-2008:141

Source: MANDRIVA
Type: Third Party Advisory
MDVSA-2008:142

Source: MISC
Type: Third Party Advisory
http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities/

Source: REDHAT
Type: Third Party Advisory
RHSA-2008:0561

Source: MISC
Type: Third Party Advisory
http://www.ruby-forum.com/topic/157034

Source: CCN
Type: Ruby Programming Language Web site
Arbitrary code execution vulnerabilities

Source: CONFIRM
Type: Patch, Vendor Advisory
http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/

Source: MISC
Type: Third Party Advisory
http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html

Source: BUGTRAQ
Type: Third Party Advisory, VDB Entry
20080626 rPSA-2008-0206-1 ruby

Source: BID
Type: Third Party Advisory, VDB Entry
29903

Source: CCN
Type: BID-29903
Ruby Multiple Array and String Handling Functions Multiple Arbitrary Code Execution Vulnerabilities

Source: SECTRACK
Type: Third Party Advisory, VDB Entry
1020347

Source: CCN
Type: USN-621-1
Ruby vulnerabilities

Source: UBUNTU
Type: Third Party Advisory
USN-621-1

Source: VUPEN
Type: Third Party Advisory
ADV-2008-1907

Source: VUPEN
Type: Third Party Advisory
ADV-2008-1981

Source: MISC
Type: Broken Link
http://www.zedshaw.com/rants/the_big_ruby_vulnerabilities.html

Source: XF
Type: Third Party Advisory, VDB Entry
ruby-rbstrbufappend-code-execution(43345)

Source: XF
Type: UNKNOWN
ruby-rbstrbufappend-code-execution(43345)

Source: CONFIRM
Type: Broken Link
https://issues.rpath.com/browse/RPL-2626

Source: OVAL
Type: Third Party Advisory
oval:org.mitre.oval:def:11601

Source: FEDORA
Type: Third Party Advisory
FEDORA-2008-5649

Source: SUSE
Type: SUSE-SR:2008:017
SUSE Security Summary Report

Vulnerable Configuration:Configuration 1:
  • cpe:/a:ruby-lang:ruby:*:*:*:*:*:*:*:* (Version <= 1.8.4)
  • OR cpe:/a:ruby-lang:ruby:*:*:*:*:*:*:*:* (Version > 1.8.5 and < 1.8.5.231)
  • OR cpe:/a:ruby-lang:ruby:*:*:*:*:*:*:*:* (Version >= 1.8.6 and < 1.8.6.230)
  • OR cpe:/a:ruby-lang:ruby:*:*:*:*:*:*:*:* (Version >= 1.8.7 and < 1.8.7.22)
  • OR cpe:/a:ruby-lang:ruby:*:*:*:*:*:*:*:* (Version >= 1.9.0 and < 1.9.0.2)

  • Configuration 2:
  • cpe:/o:debian:debian_linux:4.0:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:8.04:*:*:*:lts:*:*:*

  • Configuration RedHat 1:
  • cpe:/o:redhat:enterprise_linux:4:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/o:redhat:enterprise_linux:4::as:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/o:redhat:enterprise_linux:4::desktop:*:*:*:*:*

  • Configuration RedHat 4:
  • cpe:/o:redhat:enterprise_linux:4::es:*:*:*:*:*

  • Configuration RedHat 5:
  • cpe:/o:redhat:enterprise_linux:4::ws:*:*:*:*:*

  • Configuration RedHat 6:
  • cpe:/o:redhat:enterprise_linux:5:*:*:*:*:*:*:*

  • Configuration RedHat 7:
  • cpe:/o:redhat:enterprise_linux:5::client:*:*:*:*:*

  • Configuration RedHat 8:
  • cpe:/o:redhat:enterprise_linux:5::client_workstation:*:*:*:*:*

  • Configuration RedHat 9:
  • cpe:/o:redhat:enterprise_linux:5::server:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:20082662
    V
    CVE-2008-2662
    2017-09-27
    oval:org.mitre.oval:def:28980
    P
    RHSA-2008:0561 -- ruby security update (Moderate)
    2015-08-17
    oval:org.mitre.oval:def:17484
    P
    USN-621-1 -- ruby1.8 vulnerabilities
    2014-07-07
    oval:org.mitre.oval:def:20201
    P
    DSA-1612-1 ruby1.8 - several vulnerabilities
    2014-06-23
    oval:org.mitre.oval:def:7922
    P
    DSA-1618 ruby1.9 -- several vulnerabilities
    2014-06-23
    oval:org.mitre.oval:def:20314
    P
    DSA-1618-1 ruby1.9 - several vulnerabilities
    2014-06-23
    oval:org.mitre.oval:def:7871
    P
    DSA-1612 ruby1.8 -- several vulnerabilities
    2014-06-23
    oval:org.mitre.oval:def:21762
    P
    ELSA-2008:0561: ruby security update (Moderate)
    2014-05-26
    oval:org.mitre.oval:def:11601
    V
    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.
    2013-04-29
    oval:org.debian:def:1618
    V
    several vulnerabilities
    2008-07-26
    oval:org.debian:def:1612
    V
    several vulnerabilities
    2008-07-21
    oval:com.redhat.rhsa:def:20080561
    P
    RHSA-2008:0561: ruby security update (Moderate)
    2008-07-16
    BACK
    ruby-lang ruby *
    ruby-lang ruby *
    ruby-lang ruby *
    ruby-lang ruby *
    ruby-lang ruby *
    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