CVE-2017-0901
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v3.0•HIGH•Score: 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- v2.0•MEDIUM•Score: 6.4AV:N/AC:L/Au:N/C:N/I:P/A:P
EPSS Trends
Current EPSS score: 20.21%• Percentile: 96%
Techniques & Countermeasures
- CWE-22•Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-20•Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Affected Systems
- canonical•ubuntu_linux
14.04 | 16.04 | 17.10
- debian•debian_linux
8.0 | 9.0
- hackerone•rubygems
Versions before 2.6.13
- redhat•enterprise_linux_desktop
7.0
- redhat•enterprise_linux_server
7.0
- redhat•enterprise_linux_server_aus
7.4 | 7.6
- redhat•enterprise_linux_server_eus
7.4 | 7.5 | 7.6
- redhat•enterprise_linux_server_tus
7.4 | 7.6
- redhat•enterprise_linux_workstation
7.0
- rubygems•rubygems
≤ 2.6.12
References (15)
- https://usn.ubuntu.com/3685-1/
- https://usn.ubuntu.com/3553-1/
- https://access.redhat.com/errata/RHSA-2018:0585
- https://www.debian.org/security/2017/dsa-3966
- https://access.redhat.com/errata/RHSA-2018:0378
- https://www.exploit-db.com/exploits/42611/
- http://www.securitytracker.com/id/1039249
- https://hackerone.com/reports/243156
- https://access.redhat.com/errata/RHSA-2017:3485
- https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- https://access.redhat.com/errata/RHSA-2018:0583
- https://security.gentoo.org/glsa/201710-01
- http://www.securityfocus.com/bid/100580
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html