Vulnerability Name:

CVE-2009-4124 (CCN-54674)

Assigned:2009-12-07
Published:2009-12-07
Updated:2017-08-17
Summary:Heap-based buffer overflow in the rb_str_justify function in string.c in Ruby 1.9.1 before 1.9.1-p376 allows context-dependent attackers to execute arbitrary code via unspecified vectors involving (1) String#ljust, (2) String#center, or (3) String#rjust.
Note: some of these details are obtained from third party information.
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
7.5 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
5.5 Medium (CCN Temporal CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-119
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2009-4124

Source: CCN
Type: SA37660
Ruby "rb_str_justify()" Buffer Overflow Vulnerability

Source: SECUNIA
Type: Vendor Advisory
37660

Source: OSVDB
Type: UNKNOWN
60880

Source: CCN
Type: OSVDB ID: 60880
Ruby string.c rb_str_justify() Function Overflow

Source: CCN
Type: Ruby Web Site
Heap overflow in String

Source: CONFIRM
Type: Patch, Vendor Advisory
http://www.ruby-lang.org/en/news/2009/12/07/heap-overflow-in-string/

Source: BID
Type: UNKNOWN
37278

Source: CCN
Type: BID-37278
Ruby 'rb_str_justify()' Heap Based Buffer Overflow Vulnerability

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

Source: VUPEN
Type: Vendor Advisory
ADV-2009-3471

Source: XF
Type: UNKNOWN
ruby-rbstrjustify-bo(54674)

Source: XF
Type: UNKNOWN
ruby-rbstrjustify-bo(54674)

Vulnerable Configuration:Configuration 1:
  • cpe:/a:ruby-lang:ruby:1.9.1:-p0:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-p129:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-p243:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-preview_1:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-preview_2:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-rc1:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-rc2:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:-p129:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.mitre.oval:def:13671
    P
    USN-900-1 -- ruby1.9 vulnerabilities
    2014-06-30
    BACK
    ruby-lang ruby 1.9.1 -p0
    ruby-lang ruby 1.9.1 -p129
    ruby-lang ruby 1.9.1 -p243
    ruby-lang ruby 1.9.1 -preview_1
    ruby-lang ruby 1.9.1 -preview_2
    ruby-lang ruby 1.9.1 -rc1
    ruby-lang ruby 1.9.1 -rc2
    ruby-lang ruby 1.9.1
    ruby-lang ruby 1.9.1 -p129