VDB

CVE-2017-0901

CVE-2017-0901 PUBLISHED CVSS 7.5 HIGH

RubyGems may allow a maliciously crafted gem to overwrite files

Reported by hackerone · Published August 31, 2017

rubygems-update is fixed in 2.6.13 and 2.6.12 (RubyGems)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
rubygems-updateRubyGems2.6.13, 2.6.12
ruby2.2Alpine2.2.8-r0
rubyAlpine2.4.2-r0, 2.3.5-r0, 2.2.8-r0
rubygemsrubygems2.6.12
ruby1.9.1Ubuntu:14.04:LTS1.9.3.484-2ubuntu1.5
ruby2.3Ubuntu:16.04:LTS2.3.1-2~16.04.6
ruby2.0Ubuntu:14.04:LTS2.0.0.484-1ubuntu2.10

Risk scores

CVSS 3.0
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
HackerOneRubyGemsVersions before 2.6.13
alpineruby2.20
alpineruby0, 0, 0
RubyGemsrubygems-update0
HackerOneRubyGems2.6.13

Timeline

  • Aug 31, 2017 CVE Published
  • Aug 31, 2017 PoC Published (2 in total, the first dated here)
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 5, 2026 Distribution Patch (14 in total, the first dated here)
  • Mar 5, 2026 Security Advisory (14 in total, the first dated here)
  • Oct 5, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-0901
vulnetix vdb fixes CVE-2017-0901

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-0901/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›