CVE-2017-0899
CRITICAL 9.8CVSS 3.0RubyGems Code Injection vulnerability
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.
- Published
- 31 Aug 2017
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-150CWE-94
- Also known as
- GHSA-7gcp-2gmq-w3xh
- Sources
- NVDJSONOSV GHSA-7gcp-2gmq-w3xhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubygems | rubygemscpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:* |
<= 2.6.12 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | redhat | enterprise_linux_desktopcpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* |
= 7.5 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_workstationcpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | RubyGems | rubygems-update | < 2.6.13 | 2.6.13 |
References
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html · Patch, Vendor Advisory, WEB
- http://www.securityfocus.com/bid/100576 · Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039249 · Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2017:3485 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2018:0378 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2018:0583 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2018:0585 · Third Party Advisory, WEB
- https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1 · Patch, Third Party Advisory, WEB
- https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491 · Patch, Third Party Advisory, WEB
- https://hackerone.com/reports/226335 · Exploit, Patch, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/201710-01 · Third Party Advisory, WEB
- https://www.debian.org/security/2017/dsa-3966 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-0899 · ADVISORY
- https://github.com/rubygems/rubygems · PACKAGE
- https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249 · WEB
- https://web.archive.org/web/20170915000000*/http://www.securityfocus.com/bid/100576#:~:text=1%20snapshot-,11%3A49%3A33,-Note · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 31 Aug 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 May 2022)