BreachSpiderVerified, not vibes

CVE-2017-0898 in Ruby-Lang Ruby

Critical 9.1 Fix available

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.09.1
EPSS9.7%
EPSS percentile96th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Ruby-Lang Ruby 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5
+9 more2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2017-0898
BreachSpider IDBS-2017-GLOBAL-113659-C
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Published2017-09-15
Last modified2026-05-13
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-134: CWE-134

Related attack patterns (CAPEC)

CAPEC-67 String Format Overflow in syslog() via CWE-134

CAPEC-135 Format String Injection via CWE-134

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2017. A critical vulnerability affects Ruby-Lang systems (CVE-2017-0898). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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. CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.

Questions

What is CVE-2017-0898?

This vulnerability was disclosed in 2017. A critical vulnerability affects Ruby-Lang systems (CVE-2017-0898). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2017-0898?

CVE-2017-0898 has CVSS 9.1 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H. EPSS: 9.7%.

Is CVE-2017-0898 actively exploited?

No confirmed active exploitation of CVE-2017-0898 as of 2026-05-30.

How do I remediate CVE-2017-0898?

Priority: MEDIUM. Advisory: https://www.ruby-lang.org/en/news/2017/09/14/sprintf-buffer-underrun-cve-2017-0898/ PSIRT: [email protected]

What systems are affected by CVE-2017-0898?

CVE-2017-0898 affects Ruby-Lang Ruby.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Ruby-Lang","product":"Ruby","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-05-13.