CVE-2017-0898CWE-134

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

published September 15, 2017

CVSS
—
EPSS
10%
Percentile
95.5
In the wild
Unconfirmed
What it is

⚠️ A format string vulnerability in Ruby could let a crafty attacker access sensitive data in your application! This flaw lurks in versions before 2.4.2, 2.3.5, and 2.2.8. 🦸‍♂️ Think of it like a restaurant recipe that calls for a pinch of salt but is mistakenly given a mountain instead. Just like the dish can go terribly wrong, a malicious format specifier can cause a heap of troubles for your memory storage by overflowing it! If exploited, an attacker could potentially corrupt the heap memory or even disclose sensitive information stored there. It’s like leaving a window unlocked and inviting anyone to peek inside your private dining room!

Put simply

Think of it like a restaurant recipe that calls for a pinch of salt but is mistakenly given a mountain instead. Just like the dish can go terribly wrong, a malicious format specifier can cause a heap of troubles for your memory storage by overflowing it! This vulnerability allows attackers to craft a malicious format string containing a large negative specifier, leading to a buffer overrun that corrupts the heap memory. This manipulation could enable unauthorized data access or memory corruption.

What to do

If exploited, an attacker could potentially corrupt the heap memory or even disclose sensitive information stored there. It’s like leaving a window unlocked and inviting anyone to peek inside your private dining room! To mitigate this, upgrade Ruby to at least version 2.4.2, 2.3.5, or 2.2.8 to patch this vulnerability. Regularly audit your dependencies and apply security updates to maintain a secure environment. 🛡️ You've got this! Keep your Ruby versions updated and stay vigilant, and you'll keep your application secure! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.09718 · 95.5th percentile
Weakness
CWE-134 · Use of Externally-Controlled Format String
Published
2017-09-15T19:00Z
EPSS history
Timeline
  • 15 SEP 19:00Z
    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
    cvelistv5