{"id":"CVE-2017-0899","aliases":["GHSA-7gcp-2gmq-w3xh"],"kind":"cve","tier":"cold","status":"published","title":"RubyGems Code Injection vulnerability","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.","ai_summary":null,"severity":"critical","cvss":{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd"},{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-150"],"remote":true,"remote_unauth":true,"epss":{"score":0.11102,"percentile":0.96646,"date":"2026-11-28"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[{"ecosystem":"RubyGems","name":"rubygems-update","affected":"< 2.6.13","fixed":["2.6.13"],"source":"osv"}],"affected_products":[{"vendor":"HackerOne","product":"RubyGems","versions":"Versions before 2.6.13","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade rubygems-update to 2.6.13 or later.","technologies":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:0585","kind":"vendor"},{"url":"https://www.debian.org/security/2017/dsa-3966","kind":"vendor"},{"url":"https://access.redhat.com/errata/RHSA-2018:0378","kind":"vendor"},{"url":"https://access.redhat.com/errata/RHSA-2017:3485","kind":"vendor"},{"url":"https://access.redhat.com/errata/RHSA-2018:0583","kind":"vendor"},{"url":"https://security.gentoo.org/glsa/201710-01","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-0899","kind":"vendor"},{"url":"https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1","kind":"patch"},{"url":"https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491","kind":"patch"},{"url":"http://blog.rubygems.org/2017/08/27/2.6.13-released.html","kind":"patch"},{"url":"https://hackerone.com/reports/226335","kind":"exploit"},{"url":"http://www.securitytracker.com/id/1039249","kind":"other"},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","kind":"other"},{"url":"http://www.securityfocus.com/bid/100576","kind":"other"},{"url":"https://github.com/rubygems/rubygems","kind":"other"},{"url":"https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249","kind":"other"},{"url":"https://web.archive.org/web/20170915000000*/http://www.securityfocus.com/bid/100576#:~:text=1%20snapshot-,11%3A49%3A33,-Note","kind":"other"}],"workarounds":null,"vendors":["debian","hackerone","redhat","rubygems"],"products":["debian_linux","enterprise_linux_desktop","enterprise_linux_server","enterprise_linux_server_aus","enterprise_linux_server_eus","enterprise_linux_server_tus","enterprise_linux_workstation","rubygems"],"cpes":["cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"],"published_at":"2017-08-31T20:00:00.000Z","modified_at":"2026-06-17T00:58:29.313Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-0899"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-7gcp-2gmq-w3xh","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2017-0899","markdown":"https://flawdb.com/CVE-2017-0899.md","json":"https://flawdb.com/api/v1/entries/CVE-2017-0899"}}