{"id":"CVE-2017-0899","details":"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.","aliases":["GHSA-7gcp-2gmq-w3xh"],"modified":"2026-07-07T08:49:20.667864856Z","published":"2017-08-31T20:29:00.417Z","related":["SUSE-SU-2020:1570-1"],"database_specific":{"unresolved_ranges":[{"vendor_product":"rubygems:rubygems","cpes":["cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"2.6.12"}],"source":"CPE_RANGE"},{"extracted_events":[{"introduced":"8.0"},{"last_affected":"8.0"},{"introduced":"9.0"},{"last_affected":"9.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux","cpes":["cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"]},{"cpes":["cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_desktop"},{"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_server","cpes":["cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}]},{"cpes":["cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.4"},{"last_affected":"7.4"},{"introduced":"7.6"},{"last_affected":"7.6"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_server_aus"},{"vendor_product":"redhat:enterprise_linux_server_eus","cpes":["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:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.4"},{"last_affected":"7.4"},{"introduced":"7.5"},{"last_affected":"7.5"},{"introduced":"7.6"},{"last_affected":"7.6"}],"source":"CPE_STRING"},{"cpes":["cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.4"},{"last_affected":"7.4"},{"introduced":"7.6"},{"last_affected":"7.6"}],"source":"CPE_STRING","vendor_product":"redhat:enterprise_linux_server_tus"},{"vendor_product":"redhat:enterprise_linux_workstation","cpes":["cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0"},{"last_affected":"7.0"}],"source":"CPE_STRING"}]},"references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/100576"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1039249"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2017:3485"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:0378"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:0583"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:0585"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201710-01"},{"type":"ADVISORY","url":"https://www.debian.org/security/2017/dsa-3966"},{"type":"FIX","url":"http://blog.rubygems.org/2017/08/27/2.6.13-released.html"},{"type":"FIX","url":"https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1"},{"type":"FIX","url":"https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491"},{"type":"FIX","url":"https://hackerone.com/reports/226335"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ruby/rubygems","events":[{"introduced":"0"},{"fixed":"1bcbc7fe637b03145401ec9c094066285934a7f1"},{"fixed":"ef0aa611effb5f54d40c7fba6e8235eb43c5a491"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v2.6.12","v2.6.11","v2.6.7","v2.6.10","v2.6.9","v2.6.8","v2.6.6","v2.6.5","v2.6.3","v2.6.4","v2.6.2","v2.6.1","v2.6.0","v2.5.2","v2.5.1","v2.5.0","v2.4.6","v2.4.5","v2.4.4","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.0","v2.2.1","v2.2.0.rc.1","v2.2.0.preview.1","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.1.0.rc.2","v2.1.0.rc.1","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v2.0.0.rc.2","v2.0.0.rc.1","v2.0.0.preview2.2","v2.0.0.preview2.1","v2.0.0.preview2","v1.8.2","v1.8.1","v1.8.0","v1.7.1","v1.7.0","v1.6.2","v1.6.1","v1.6.0","v1.5.2","v1.5.1","v1.5.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-0899.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}