CVE-2017-0899CWE-150

RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters

published August 31, 2017

CVSS
—
EPSS
11%
Percentile
95.9
In the wild
Unconfirmed
What it is

⚠️ A seemingly innocent gem could be hiding terminal escape sequences! When printed, they might just execute commands that could leave your system vulnerable. 🔥 Think of it like a restaurant that serves dishes with sneaky surprise ingredients. If the chef doesn't check the labels, a harmless-looking spice could pack a punch that changes everything! If an attacker crafts a gem specification with malicious escape sequences, printing it could unintentionally execute commands on your terminal. That's like accidentally setting off fireworks inside your home—unexpected and potentially destructive!

Put simply

Think of it like a restaurant that serves dishes with sneaky surprise ingredients. If the chef doesn't check the labels, a harmless-looking spice could pack a punch that changes everything! This vulnerability allows crafted gem specifications in RubyGems (versions 2.6.12 and earlier) to contain terminal escape characters that, when printed, execute unintended commands. It’s a sneaky way to run code that shouldn’t be executed in the first place.

What to do

If an attacker crafts a gem specification with malicious escape sequences, printing it could unintentionally execute commands on your terminal. That's like accidentally setting off fireworks inside your home—unexpected and potentially destructive! To mitigate this risk, upgrade RubyGems to version 2.6.13 or later, which addresses this vulnerability. Additionally, always validate gem specifications and avoid untrusted sources when installing gems. You've got this! By upgrading and staying vigilant, you can keep your Ruby environment safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.11102 · 95.9th percentile
Weakness
CWE-150 · Improper Neutralization of Escape, Meta, or Control Sequences
Published
2017-08-31T20:00Z
EPSS history
Timeline
  • 31 AUG 20:00Z
    RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters
    cvelistv5