All reports
Medium

ruby: Buffer underrun vulnerability in Kernel.sprintf

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2017-0898

Probability of exploitation in the next 30 days: 9.72%

FIRST EPSS · 2026-11-19

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.

A buffer underflow was found in ruby's sprintf function. An attacker, with ability to control its format string parameter, could send a specially crafted string that would disclose heap memory or crash the interpreter.