Ruby up to 2.2.7/2.3.4/2.4.1 format/sprintf format string

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.1$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as problematic, has been found in Ruby up to 2.2.7/2.3.4/2.4.1. Affected by this issue is the function format/sprintf. This manipulation causes format string. This vulnerability appears as CVE-2017-0898. The attack may be initiated remotely. There is no available exploit. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as problematic was found in Ruby up to 2.2.7/2.3.4/2.4.1 (Programming Language Software). Affected by this vulnerability is the function format/sprintf. The manipulation with an unknown input leads to a format string vulnerability. The CWE definition for the vulnerability is CWE-134. The product uses a function that accepts a format string as an argument, but the format string originates from an external source. As an impact it is known to affect confidentiality. The summary by CVE is:

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.

The bug was discovered 09/15/2017. The weakness was presented 09/15/2017 (Website). It is possible to read the advisory at securityfocus.com. This vulnerability is known as CVE-2017-0898 since 11/30/2016. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 103471 (Debian DLA-1113-1 : ruby1.8 security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 351104 (Amazon Linux Security Advisory for ruby22,ruby23: ALAS-2017-906).

Upgrading to version 2.2.8, 2.3.5 or 2.4.2 eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (103471), SecurityFocus (BID 100862†) and CERT Bund (WID-SEC-2026-1423). See VDB-106843 and VDB-126326 for similar entries. Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Affected

  • Open Source CentOS
  • Debian Linux
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • Open Source Ruby

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.2
VulDB Meta Temp Score: 7.1

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.1
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Format string
CWE: CWE-134 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 103471
Nessus Name: Debian DLA-1113-1 : ruby1.8 security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 830183
OpenVAS Name: Debian Security Advisory DSA 4031-1 (ruby2.3 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: Ruby 2.2.8/2.3.5/2.4.2

Timelineinfo

11/30/2016 🔍
09/14/2017 +287 days 🔍
09/15/2017 +1 days 🔍
09/15/2017 +0 days 🔍
09/15/2017 +0 days 🔍
09/16/2017 +1 days 🔍
09/26/2017 +10 days 🔍
09/27/2017 +1 days 🔍
05/10/2026 +3147 days 🔍

Sourcesinfo

Advisory: RHSA-2017:3485
Researcher: aerodudrizzt.
Status: Confirmed

CVE: CVE-2017-0898 (🔍)
GCVE (CVE): GCVE-0-2017-0898
GCVE (VulDB): GCVE-100-106723

OVAL: 🔍

SecurityFocus: 100862
SecurityTracker: 1039363
CERT Bund: WID-SEC-2026-1423 - Ruby: Mehrere Schwachstellen

See also: 🔍

Entryinfo

Created: 09/16/2017 14:10
Updated: 05/10/2026 07:53
Changes: 09/16/2017 14:10 (76), 11/17/2019 06:24 (2), 01/13/2021 10:13 (3), 01/13/2021 10:17 (3), 12/29/2022 09:30 (3), 05/10/2026 07:53 (23)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!