CVE-2017-0901 in the critical feed json
RubyGems may allow a maliciously crafted gem to overwrite files
published 2017-08-31 9 y ago modified 2026-06-17 4 mo ago also GHSA-pm9x-4392-2c2p , EUVD-2022-4796
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 29.4%
- EPSS 29.4% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Exploit-DB
Summary
RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
Patch / fix
- rubygems rubygems-update 2.6.13
- rubygems Debian 14, Debian 13, Debian 12 3.2.0~rc.1-1
debian advisories DEBIAN-CVE-2017-0901
- ruby2.0 Ubuntu 14.04 LTS 2.0.0.484-1ubuntu2.10
- ruby2.3 Ubuntu 16.04 LTS 2.3.1-2~16.04.6
- ruby1.9.1 Ubuntu 14.04 LTS 1.9.3.484-2ubuntu1.5
ubuntu advisories UBUNTU-CVE-2017-0901
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-ruby22-ruby RHEL 3 SOFTWARE_COLLECTIONS 2.2.9-19.el6
- rh-ruby22-ruby RHEL 3 SOFTWARE_COLLECTIONS 2.2.9-19.el7
- rh-ruby22-ruby-irb RHEL 3 SOFTWARE_COLLECTIONS 2.2.9-19.el6
- rh-ruby22-ruby-irb RHEL 3 SOFTWARE_COLLECTIONS 2.2.9-19.el7
- rh-ruby22-rubygems RHEL 3 SOFTWARE_COLLECTIONS 2.4.5.4-19.el6
- rh-ruby22-rubygems RHEL 3 SOFTWARE_COLLECTIONS 2.4.5.4-19.el7
- rh-ruby22-ruby-libs RHEL 3 SOFTWARE_COLLECTIONS 2.2.9-19.el6
- rh-ruby22-ruby-libs RHEL 3 SOFTWARE_COLLECTIONS 2.2.9-19.el7
red hat advisories RHSA-2018:0583RHSA-2018:0585RHSA-2018:0378RHSA-2017:3485
- ruby2.1 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +14 more 2.1.9-19.3.2
- yast2-ruby-bindings SLES for SAP 12 SP2, SLES 12 SP2-LTSS, SLES 12 SP2-BCL +1 more 3.1.53-9.8.1
suse advisories SUSE-SU-2020:1570-1
- ruby Alpine 3.24, Alpine 3.23, Alpine 3.22 +16 more 2.4.2-r0
- ruby Alpine 3.3 2.2.8-r0
- ruby Alpine 3.5, Alpine 3.4 2.3.5-r0
- ruby2.2 Alpine 3.6, Alpine 3.5 2.2.8-r0
alpine advisories ALPINE-CVE-2017-0901
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-0901 updated cvss 6.5
rubygems: Arbitrary file overwrite due to incorrect validation of specification name
-
Red Hat Enterprise Linux 6 rubygemsaffected: no fix planned “Will not fix”
-
Red Hat Enterprise MRG 2 rubygems Red Hat Satellite 6 rubygems Red Hat Subscription Asset Manager ruby193-rubygemsunder investigation
-
Red Hat Enterprise Linux Client (v. 7) ruby 2.0.0.648-33.el7_4, rubygems 2.0.14.1-33.el7_4, ruby-irb 2.0.0.648-33.el7_4, rubygem-json 1.7.7-33.el7_4, rubygem-rdoc 4.0.0-33.el7_4, ruby-libs 2.0.0.648-33.el7_4, +3 more Red Hat Enterprise Linux Client Optional (v. 7) rubygem-rake 0.9.6-33.el7_4, ruby-tcltk 2.0.0.648-33.el7_4, rubygem-minitest 4.3.2-33.el7_4 Red Hat Enterprise Linux ComputeNode (v. 7) ruby 2.0.0.648-33.el7_4, rubygems 2.0.14.1-33.el7_4, ruby-irb 2.0.0.648-33.el7_4, rubygem-json 1.7.7-33.el7_4, rubygem-rdoc 4.0.0-33.el7_4, ruby-libs 2.0.0.648-33.el7_4, +3 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) rubygem-rake 0.9.6-33.el7_4, ruby-tcltk 2.0.0.648-33.el7_4, rubygem-minitest 4.3.2-33.el7_4 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) ruby 2.0.0.648-33.el7_4, rubygems 2.0.14.1-33.el7_4, ruby-irb 2.0.0.648-33.el7_4, rubygem-json 1.7.7-33.el7_4, rubygem-rdoc 4.0.0-33.el7_4, ruby-libs 2.0.0.648-33.el7_4, +3 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) rubygem-rake 0.9.6-33.el7_4, ruby-tcltk 2.0.0.648-33.el7_4, rubygem-minitest 4.3.2-33.el7_4fixed: vendor fix RHSA-2018:0378
+4 more productsfewer
Red Hat Enterprise Linux Server (v. 7) ruby 2.0.0.648-33.el7_4, rubygems 2.0.14.1-33.el7_4, ruby-irb 2.0.0.648-33.el7_4, rubygem-json 1.7.7-33.el7_4, rubygem-rdoc 4.0.0-33.el7_4, ruby-libs 2.0.0.648-33.el7_4, +3 more Red Hat Enterprise Linux Server Optional (v. 7) rubygem-rake 0.9.6-33.el7_4, ruby-tcltk 2.0.0.648-33.el7_4, rubygem-minitest 4.3.2-33.el7_4 Red Hat Enterprise Linux Workstation (v. 7) ruby 2.0.0.648-33.el7_4, rubygems 2.0.14.1-33.el7_4, ruby-irb 2.0.0.648-33.el7_4, rubygem-json 1.7.7-33.el7_4, rubygem-rdoc 4.0.0-33.el7_4, ruby-libs 2.0.0.648-33.el7_4, +3 more Red Hat Enterprise Linux Workstation Optional (v. 7) rubygem-rake 0.9.6-33.el7_4, ruby-tcltk 2.0.0.648-33.el7_4, rubygem-minitest 4.3.2-33.el7_4 -
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby22-ruby 2.2.9-19.el6, rh-ruby23-ruby 2.3.6-67.el6, rh-ruby24-ruby 2.4.2-86.el6, rh-ruby22-ruby-irb 2.2.9-19.el6, rh-ruby23-ruby-irb 2.3.6-67.el6, rh-ruby24-ruby-irb 2.4.2-86.el6, +41 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby22-ruby 2.2.9-19.el7, rh-ruby23-ruby 2.3.6-67.el7, rh-ruby24-ruby 2.4.2-86.el7, rh-ruby22-ruby-irb 2.2.9-19.el7, rh-ruby23-ruby-irb 2.3.6-67.el7, rh-ruby24-ruby-irb 2.4.2-86.el7, +41 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-ruby22-ruby 2.2.9-19.el6, rh-ruby23-ruby 2.3.6-67.el6, rh-ruby24-ruby 2.4.2-86.el6, rh-ruby22-ruby-irb 2.2.9-19.el6, rh-ruby23-ruby-irb 2.3.6-67.el6, rh-ruby24-ruby-irb 2.4.2-86.el6, +41 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-ruby22-ruby 2.2.9-19.el7, rh-ruby23-ruby 2.3.6-67.el7, rh-ruby24-ruby 2.4.2-86.el7, rh-ruby22-ruby-irb 2.2.9-19.el7, rh-ruby23-ruby-irb 2.3.6-67.el7, rh-ruby24-ruby-irb 2.4.2-86.el7, +41 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby22-ruby 2.2.9-19.el7, rh-ruby23-ruby 2.3.6-67.el7, rh-ruby24-ruby 2.4.2-86.el7, rh-ruby22-ruby-irb 2.2.9-19.el7, rh-ruby23-ruby-irb 2.3.6-67.el7, rh-ruby24-ruby-irb 2.4.2-86.el7, +41 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby22-ruby 2.2.9-19.el6, rh-ruby23-ruby 2.3.6-67.el6, rh-ruby24-ruby 2.4.2-86.el6, rh-ruby22-ruby-irb 2.2.9-19.el6, rh-ruby23-ruby-irb 2.3.6-67.el6, rh-ruby24-ruby-irb 2.4.2-86.el6, +41 morefixed: vendor fix RHSA-2018:0583
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby22-ruby 2.2.9-19.el7, rh-ruby23-ruby 2.3.6-67.el7, rh-ruby24-ruby 2.4.2-86.el7, rh-ruby22-ruby-irb 2.2.9-19.el7, rh-ruby23-ruby-irb 2.3.6-67.el7, rh-ruby24-ruby-irb 2.4.2-86.el7, +41 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-42611)
Exploit prediction
29.44% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-42611 RubyGems < 2.6.13 - Arbitrary File Overwrite local, 2017-09-04
- hackerone.com https://hackerone.com/reports/243156 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rubygems-update | <2.6.13 |
2.6.13 |
Affected products
- HackerOne RubyGems
Classification
References
-
github.com
/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2
web, patch, third-party-advisory
-
hackerone.com
/reports/243156
web, exploit, patch, third-party-advisory
-
blog.rubygems.org
/2017/08/27/2.6.13-released.html
web, patch, vendor-advisory
-
exploit-db.com
/exploits/42611/
exploit, third-party-advisory, vdb-entry
-
usn.ubuntu.com
/3685-1/
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3553-1/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0585
vendor-advisory, web, third-party-advisory
-
debian.org
/security/2017/dsa-3966
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0378
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2017:3485
vendor-advisory, web, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:0583
vendor-advisory, web, third-party-advisory
-
security.gentoo.org
/glsa/201710-01
vendor-advisory, web, third-party-advisory
-
securitytracker.com
/id/1039249
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/07/msg00012.html
mailing-list, web, third-party-advisory
-
securityfocus.com
/bid/100580
vdb-entry, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-0901
advisory
-
github.com
/rubygems/rubygems
package
-
usn.ubuntu.com
/3553-1
web
-
usn.ubuntu.com
/3685-1
web
-
web.archive.org
/web/20170907215801/http://www.securitytracker.com/id/1039249
web
-
web.archive.org
/web/20170915000000*/http://www.securityfocus.com/bid/100580#:~:text=1%20snapshot-,16%3A05%3A26,-Note
web
-
exploit-db.com
/exploits/42611
web
Sources
- CVE List CVE-2017-0901
- GitHub Advisory GHSA-pm9x-4392-2c2p
- NVD CVE-2017-0901
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.