CVEfocus › CVE database › CVE-2017-0899

CVE-2017-0899

CVSS 9.8 CriticalEPSS 11.1% (higher than 96% of CVEs)Published 2017-08-31Updated 2024-09-17Assigner: hackerone

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.

CWE-150

What to do

Likely to be exploited: EPSS gives a 11% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian, Red Hat, RubyGems, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

45Fixed
2Fix pending
1Under investigation
5Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10jrubyFix pendingUBUNTU-CVE-2017-0899
Ubuntu 26.04jrubyUnder investigationUBUNTU-CVE-2017-0899
Ubuntu 25.10jrubyWill not fix
ruby{1.9.1,2.0,2.3} and jruby ship an embedded rubygems. ruby2.3 (xenial) was fixed back in release version 2.3.1-2~16.04.6. The patch that fixed this CVE…
UBUNTU-CVE-2017-0899
Ubuntu 24.04jrubyNot affected
vulnerable_code_not_present
Ubuntu 20.04jrubyWill not fix
ruby{1.9.1,2.0,2.3} and jruby ship an embedded rubygems. ruby2.3 (xenial) was fixed back in release version 2.3.1-2~16.04.6. The patch that fixed this CVE…
Ubuntu 18.04jrubyWill not fix
ruby{1.9.1,2.0,2.3} and jruby ship an embedded rubygems. ruby2.3 (xenial) was fixed back in release version 2.3.1-2~16.04.6. The patch that fixed this CVE…
Ubuntu 16.04jrubyWill not fix
ruby{1.9.1,2.0,2.3} and jruby ship an embedded rubygems. ruby2.3 (xenial) was fixed back in release version 2.3.1-2~16.04.6. The patch that fixed this CVE…
UBUNTU-CVE-2017-0899
Ubuntu 16.04ruby2.3Fixed2.3.1-2~16.04.6UBUNTU-CVE-2017-0899
Ubuntu 14.04jrubyFix pendingUBUNTU-CVE-2017-0899
Ubuntu 14.04ruby1.9.1Fixed1.9.3.484-2ubuntu1.5UBUNTU-CVE-2017-0899
Debian 14rubygemsFixed3.2.0~rc.1-1DEBIAN-CVE-2017-0899
Debian 13rubygemsFixed3.2.0~rc.1-1DEBIAN-CVE-2017-0899
Debian 12rubygemsFixed3.2.0~rc.1-1DEBIAN-CVE-2017-0899
Red Hat Enterprise Linux 7rubyFixed0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7ruby-develFixed0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7ruby-docFixed0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7ruby-irbFixed0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7ruby-libsFixed0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7ruby-tcltkFixed0:2.0.0.648-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-bigdecimalFixed0:1.2.0-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-io-consoleFixed0:0.4.2-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-jsonFixed0:1.7.7-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-minitestFixed0:4.3.2-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-psychFixed0:2.0.0-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-rakeFixed0:0.9.6-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygem-rdocFixed0:4.0.0-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygemsFixed0:2.0.14.1-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 7rubygems-develFixed0:2.0.14.1-33.el7_4RHSA-2018:0378
Red Hat Enterprise Linux 6rubygemsWill not fix
Will not fix
Alpine Linux 3.24rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.23rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.22rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.21rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.20rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.19rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.18rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.17rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.16rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.15rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.14rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.13rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.12rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.11rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.10rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.9rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.8rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.7rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.6rubyFixed2.4.2-r0ALPINE-CVE-2017-0899
Alpine Linux 3.6ruby2.2Fixed2.2.8-r0ALPINE-CVE-2017-0899
Alpine Linux 3.5rubyFixed2.3.5-r0ALPINE-CVE-2017-0899
Alpine Linux 3.5ruby2.2Fixed2.2.8-r0ALPINE-CVE-2017-0899
Alpine Linux 3.4rubyFixed2.3.5-r0ALPINE-CVE-2017-0899
Alpine Linux 3.3rubyFixed2.2.8-r0ALPINE-CVE-2017-0899
RubyGems libraryrubygems-updateFixed2.6.13GHSA-7gcp-2gmq-w3xh

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.