CVE-2017-0899
Description
RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters. Printing the gem specification would execute terminal escape sequences.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
11.102%
chance of exploitation in the next 30 days
higher than 96% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
Timeline
- 2017-08-31Published by the CNA20:00 UTC
- 2022-05-13GitHub advisory published (GHSA-7gcp-2gmq-w3xh)1716 days after publication
Exploit and advisory records
GitHub advisory GHSA-7gcp-2gmq-w3xh, affected packages:
| Ecosystem | Package | Vulnerable range | Patched |
|---|---|---|---|
| RubyGems | rubygems-update | < 2.6.13 | 2.6.13 |
Affected products
| Vendor | Product |
|---|---|
| debian | debian_linux |
| redhat | enterprise_linux_desktop |
| redhat | enterprise_linux_server |
| redhat | enterprise_linux_server_aus |
| redhat | enterprise_linux_server_eus |
| redhat | enterprise_linux_server_tus |
| redhat | enterprise_linux_workstation |
| rubygems | rubygems |
References
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html
- https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1
- https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491
- https://hackerone.com/reports/226335
- https://access.redhat.com/errata/RHSA-2017:3485
- https://access.redhat.com/errata/RHSA-2018:0378
- https://access.redhat.com/errata/RHSA-2018:0583
- https://access.redhat.com/errata/RHSA-2018:0585
- https://security.gentoo.org/glsa/201710-01
- https://www.debian.org/security/2017/dsa-3966
- http://www.securityfocus.com/bid/100576
- http://www.securitytracker.com/id/1039249
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2017-0899'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2017-0899'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2017-0899'curl 'https://api.contrastcyber.com/cve_products/CVE-2017-0899'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).