{"id":"CVE-2017-0899","published":"2017-08-31T20:00:00Z","modified":"2024-09-17T02:20:54Z","title":"RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal…","vendor":"HackerOne","product":"RubyGems","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.11102,"percentile":0.96031,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:0585","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.debian.org/security/2017/dsa-3966","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0378","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://hackerone.com/reports/226335","tags":["x_refsource_MISC"]},{"url":"http://www.securitytracker.com/id/1039249","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3485","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0583","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://security.gentoo.org/glsa/201710-01","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securityfocus.com/bid/100576","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://blog.rubygems.org/2017/08/27/2.6.13-released.html","tags":["x_refsource_MISC"]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":19.21}]},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"RubyGems","versions":["Versions before 2.6.13"]}],"affected":[{"ecosystem":"RubyGems","package":"rubygems-update","vulnerableRanges":["<2.6.13"],"patched":["2.6.13"],"from":["GHSA-7gcp-2gmq-w3xh"],"provenance":"source"}],"summary":{"text":"RubyGems version 2.6.12 and earlier contains a flaw in how it handles gem specifications, where improper neutralization of escape and control sequences means specifications containing terminal escape characters are not sanitized. An attacker can supply a maliciously crafted gem specification so that when it is printed to a terminal, the embedded escape sequences are executed, and the attack requires that a user or process display that specification.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:49:12Z"},"euvd":{"id":"EUVD-2022-2994","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hackerone-rubygems-cve-2017-0899","children":[{"from":"CVE-2017-0899","to":"CVE-2017-0900","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rubygems/commands/query_command.rb","lib/rubygems/text.rb"],"commits":["https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1","https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491","https://github.com/rubygems/rubygems/commit/8a38a4fc24c6591e6c8f43d1fadab6efeb4d6251"],"basis":"rarely changed file"}]}]}}