7.5high

CVE-2017-0901in critical feed1 exploit

RubyGems may allow a maliciously crafted gem to overwrite files

Also known as GHSA-pm9x-4392-2c2p

Published 9 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
29.4%
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.

Exploit prediction (EPSS)

29.44% probability of exploitation in the next 30 days, higher than 98% of all scored CVEs.

Exploits and detections

  • EDB-42611 RubyGems < 2.6.13 - Arbitrary File Overwrite · local · 2017-09-04

CVSS scores

Assigned byVersionScoreVector
NVD3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD2.06.4AV:N/AC:L/Au:N/C:N/I:P/A:P
GitHub3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

EcosystemPackageAffectedFixed in
rubygemsrubygems-update
<2.6.13
2.6.13

Affected products

  • HackerOne RubyGems

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-20 Improper Input Validation

References

  • usn.ubuntu.com /3685-1/ · vendor-advisory, x_refsource_UBUNTU, x_transferred
  • usn.ubuntu.com /3553-1/ · vendor-advisory, x_refsource_UBUNTU, x_transferred
  • access.redhat.com /errata/RHSA-2018:0585 · vendor-advisory, x_refsource_REDHAT, x_transferred
  • debian.org /security/2017/dsa-3966 · vendor-advisory, x_refsource_DEBIAN, x_transferred
  • access.redhat.com /errata/RHSA-2018:0378 · vendor-advisory, x_refsource_REDHAT, x_transferred
  • exploit-db.com /exploits/42611/ · exploit, x_refsource_EXPLOIT-DB, x_transferred
  • securitytracker.com /id/1039249 · vdb-entry, x_refsource_SECTRACK, x_transferred
  • hackerone.com /reports/243156 · x_refsource_MISC, x_transferred
  • access.redhat.com /errata/RHSA-2017:3485 · vendor-advisory, x_refsource_REDHAT, x_transferred
  • github.com /rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2 · x_refsource_MISC, x_transferred
  • lists.debian.org /debian-lts-announce/2018/07/msg00012.html · mailing-list, x_refsource_MLIST, x_transferred
  • access.redhat.com /errata/RHSA-2018:0583 · vendor-advisory, x_refsource_REDHAT, x_transferred
  • security.gentoo.org /glsa/201710-01 · vendor-advisory, x_refsource_GENTOO, x_transferred
  • securityfocus.com /bid/100580 · vdb-entry, x_refsource_BID, x_transferred
  • blog.rubygems.org /2017/08/27/2.6.13-released.html · x_refsource_MISC, x_transferred
  • 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 · web
  • exploit-db.com /exploits/42611 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.