9.1
CRITICAL
CVE-2017-0898
Oracle Ruby Format String Vulnerability
Description

Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) with a huge minus value. Such situation can lead to a buffer overrun, resulting in a heap memory corruption or an information disclosure from the heap.

INFO

Published Date :

Sept. 15, 2017, 7:29 p.m.

Last Modified :

July 15, 2018, 1:29 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.2

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2017-0898 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Ruby-lang ruby

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-0898 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-0898 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added CWE HackerOne CWE-134
  • CVE Modified by [email protected]

    Jul. 15, 2018

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jun. 16, 2018

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/3685-1/ [No Types Assigned]
  • CVE Modified by [email protected]

    Mar. 28, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:0585 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2018:0583 [No Types Assigned]
  • CVE Modified by [email protected]

    Mar. 02, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2018:0378 [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 20, 2017

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2017:3485 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 13, 2017

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2017/dsa-4031 [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 19, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201710-18 [No Types Assigned]
  • Initial Analysis by [email protected]

    Sep. 26, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:N/A:P)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
    Changed Reference Type https://github.com/mruby/mruby/issues/3722 No Types Assigned https://github.com/mruby/mruby/issues/3722 Exploit, Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/100862 No Types Assigned http://www.securityfocus.com/bid/100862 Third Party Advisory, VDB Entry
    Changed Reference Type https://hackerone.com/reports/212241 No Types Assigned https://hackerone.com/reports/212241 Exploit, Third Party Advisory
    Changed Reference Type https://www.ruby-lang.org/en/news/2017/09/14/sprintf-buffer-underrun-cve-2017-0898/ No Types Assigned https://www.ruby-lang.org/en/news/2017/09/14/sprintf-buffer-underrun-cve-2017-0898/ Vendor Advisory
    Changed Reference Type http://www.securitytracker.com/id/1039363 No Types Assigned http://www.securitytracker.com/id/1039363 Third Party Advisory, VDB Entry
    Added CWE CWE-134
    Added CPE Configuration OR *cpe:2.3:a:ruby-lang:ruby:2.2.0:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.1:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.3:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.4:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.5:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.6:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.2.7:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.3.1:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.3.2:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.3.3:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.3.4:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:* *cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Sep. 22, 2017

    Action Type Old Value New Value
    Changed Description Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a leakage of its heap by the malicious specification of the format of sprintf method. If a script allows to accept any format from the outside, there is a risk to be spied the contents of the heap. Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) with a huge minus value. Such situation can lead to a buffer overrun, resulting in a heap memory corruption or an information disclosure from the heap.
  • CVE Modified by [email protected]

    Sep. 20, 2017

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/100862 [No Types Assigned]
  • CVE Modified by [email protected]

    Sep. 17, 2017

    Action Type Old Value New Value
    Added Reference http://www.securitytracker.com/id/1039363 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-0898 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2017-0898 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

1.26 }} -0.03%

score

0.85440

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability