Vulnerability Name:

CVE-2013-4287 (CCN-87012)

Assigned:2013-09-09
Published:2013-09-09
Updated:2019-04-22
Summary:Algorithmic complexity vulnerability in Gem::Version::VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.1, 1.8.24 through 1.8.25, 2.0.x before 2.0.8, and 2.1.x before 2.1.0, as used in Ruby 1.9.0 through 2.0.0p247, allows remote attackers to cause a denial of service (CPU consumption) via a crafted gem version that triggers a large amount of backtracking in a regular expression.
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:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P)
3.2 Low (Temporal CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
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
2.6 Low (REDHAT CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:N/A:P)
1.9 Low (REDHAT Temporal CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:N/A:P/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
Vulnerability Type:CWE-310
CWE-407
CWE-400
CWE-400
Vulnerability Consequences:Denial of Service
References:Source: CONFIRM
Type: Patch, Vendor Advisory
http://blog.rubygems.org/2013/09/09/CVE-2013-4287.html

Source: MITRE
Type: CNA
CVE-2013-4287

Source: REDHAT
Type: Vendor Advisory
RHSA-2013:1427

Source: CCN
Type: RHSA-2013-1441
Moderate: rubygems security update

Source: REDHAT
Type: UNKNOWN
RHSA-2013:1441

Source: REDHAT
Type: UNKNOWN
RHSA-2013:1523

Source: CCN
Type: RHSA-2013-1852
Moderate: Red Hat Enterprise MRG Grid 2.4 security update

Source: REDHAT
Type: UNKNOWN
RHSA-2013:1852

Source: CCN
Type: RHSA-2014-0207
Moderate: rubygems security update

Source: REDHAT
Type: UNKNOWN
RHSA-2014:0207

Source: SECUNIA
Type: UNKNOWN
55381

Source: MLIST
Type: Patch
[oss-security] 20130909 CVE-2013-4287 Algorithmic complexity vulnerability in RubyGems 2.0.7 and older

Source: CCN
Type: BID-62281
RubyGems CVE-2013-4287 Denial of Service Vulnerability

Source: CCN
Type: Red Hat Bugzilla Bug 1002364
CVE-2013-4287 rubygems: version regex algorithmic complexity vulnerability

Source: XF
Type: UNKNOWN
rubygems-cve20134287-dos(87012)

Source: CONFIRM
Type: UNKNOWN
https://puppet.com/security/cve/cve-2013-4287

Source: CCN
Type: Ruby Web site
Ruby Programming Language

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2013-4287

Vulnerable Configuration:Configuration 1:
  • cpe:/o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/a:rubygems:rubygems:1.8.0:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.1:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.2:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.3:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.4:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.5:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.6:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.7:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.8:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.9:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.10:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.11:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.12:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.13:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.14:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.15:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.16:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.17:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.18:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.19:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.20:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.21:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.22:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:*:*:*:*:*:*:*:* (Version <= 1.8.23)
  • OR cpe:/a:rubygems:rubygems:1.8.24:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:1.8.25:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.1:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.2:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.3:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.4:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.5:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.6:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.0.7:*:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.1.0:rc1:*:*:*:*:*:*
  • OR cpe:/a:rubygems:rubygems:2.1.0:rc2:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/a:ruby-lang:ruby:1.9:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p0:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p125:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p194:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p286:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p383:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p385:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p392:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p426:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:1.9.3:p429:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:p0:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:p195:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:p247:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:preview1:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:preview2:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:rc1:*:*:*:*:*:*
  • OR cpe:/a:ruby-lang:ruby:2.0.0:rc2:*:*:*:*:*:*

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

  • Configuration RedHat 2:
  • cpe:/o:redhat:enterprise_linux:6::client:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/o:redhat:enterprise_linux:6::computenode:*:*:*:*:*

  • Configuration RedHat 4:
  • cpe:/o:redhat:enterprise_linux:6::server:*:*:*:*:*

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

  • Configuration CCN 1:
  • cpe:/a:rubyforge:rubygems:0.8.11:*:*:*:*:*:*:*
  • AND
  • cpe:/o:redhat:enterprise_linux:5::client:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:6::server:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:6::workstation:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_desktop:6:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_hpc_node:6:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:20134287
    V
    CVE-2013-4287
    2015-11-16
    oval:org.mitre.oval:def:23772
    P
    ELSA-2013:1441: rubygems security update (Moderate)
    2014-05-26
    oval:org.mitre.oval:def:20861
    P
    RHSA-2013:1441: rubygems security update (Moderate)
    2014-02-17
    oval:com.redhat.rhsa:def:20131441
    P
    RHSA-2013:1441: rubygems security update (Moderate)
    2013-10-17
    oval:com.ubuntu.precise:def:20134287000
    V
    CVE-2013-4287 on Ubuntu 12.04 LTS (precise) - low.
    2013-10-17
    BACK
    redhat enterprise linux 6.0
    rubygems rubygems 1.8.0
    rubygems rubygems 1.8.1
    rubygems rubygems 1.8.2
    rubygems rubygems 1.8.3
    rubygems rubygems 1.8.4
    rubygems rubygems 1.8.5
    rubygems rubygems 1.8.6
    rubygems rubygems 1.8.7
    rubygems rubygems 1.8.8
    rubygems rubygems 1.8.9
    rubygems rubygems 1.8.10
    rubygems rubygems 1.8.11
    rubygems rubygems 1.8.12
    rubygems rubygems 1.8.13
    rubygems rubygems 1.8.14
    rubygems rubygems 1.8.15
    rubygems rubygems 1.8.16
    rubygems rubygems 1.8.17
    rubygems rubygems 1.8.18
    rubygems rubygems 1.8.19
    rubygems rubygems 1.8.20
    rubygems rubygems 1.8.21
    rubygems rubygems 1.8.22
    rubygems rubygems *
    rubygems rubygems 1.8.24
    rubygems rubygems 1.8.25
    rubygems rubygems 2.0.0
    rubygems rubygems 2.0.1
    rubygems rubygems 2.0.2
    rubygems rubygems 2.0.3
    rubygems rubygems 2.0.4
    rubygems rubygems 2.0.5
    rubygems rubygems 2.0.6
    rubygems rubygems 2.0.7
    rubygems rubygems 2.1.0 rc1
    rubygems rubygems 2.1.0 rc2
    ruby-lang ruby 1.9
    ruby-lang ruby 1.9.1
    ruby-lang ruby 1.9.2
    ruby-lang ruby 1.9.3
    ruby-lang ruby 1.9.3 p0
    ruby-lang ruby 1.9.3 p125
    ruby-lang ruby 1.9.3 p194
    ruby-lang ruby 1.9.3 p286
    ruby-lang ruby 1.9.3 p383
    ruby-lang ruby 1.9.3 p385
    ruby-lang ruby 1.9.3 p392
    ruby-lang ruby 1.9.3 p426
    ruby-lang ruby 1.9.3 p429
    ruby-lang ruby 2.0
    ruby-lang ruby 2.0.0
    ruby-lang ruby 2.0.0 p0
    ruby-lang ruby 2.0.0 p195
    ruby-lang ruby 2.0.0 p247
    ruby-lang ruby 2.0.0 preview1
    ruby-lang ruby 2.0.0 preview2
    ruby-lang ruby 2.0.0 rc1
    ruby-lang ruby 2.0.0 rc2
    rubyforge rubygems 0.8.11
    redhat enterprise linux 5
    redhat enterprise linux 6
    redhat enterprise linux 6
    redhat enterprise linux desktop 6
    redhat enterprise linux hpc node 6