Vulnerability Details : CVE-2019-8320
Potential exploit
A Directory Traversal issue was discovered in RubyGems 2.7.6 and later through 3.0.2. Before making new directories or touching files (which now include path-checking code for symlinks), it would delete the target destination. If that destination was hidden behind a symlink, a malicious gem could delete arbitrary files on the user's machine, presuming the attacker could guess at paths. Given how frequently gem is run as sudo, and how predictable paths are on modern systems (/tmp, /usr, etc.), this could likely lead to data loss or an unusable system.
Vulnerability category: Directory traversal
Products affected by CVE-2019-8320
- cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2019-8320
6.65%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 91 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2019-8320
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
8.8
|
HIGH | AV:N/AC:M/Au:N/C:N/I:C/A:C |
8.6
|
9.2
|
NIST | |
7.4
|
HIGH | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
2.2
|
5.2
|
NIST |
CWE ids for CVE-2019-8320
-
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.Assigned by: nvd@nist.gov (Primary)
References for CVE-2019-8320
-
https://access.redhat.com/errata/RHSA-2019:1429
RHSA-2019:1429 - Security Advisory - Red Hat Customer Portal
-
https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
March 2019 Security Advisories - RubyGems BlogVendor Advisory
-
https://hackerone.com/reports/317321
#317321 Delete directory using symlink when decompressing tarExploit;Third Party Advisory
-
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
[security-announce] openSUSE-SU-2019:1771-1: important: Security update
-
https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
[SECURITY] [DLA 2330-1] jruby security update
Jump to