8.8 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:N/I:C/A:C
7.4 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
0.006 Low
EPSS
Percentile
78.6%
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.
Author | Note |
---|---|
tyhicks | ruby{1.9.1,2.0,2.3} and jruby ship an embedded rubygems. |
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 18.04 | noarch | jruby | < any | UNKNOWN |
ubuntu | 14.04 | noarch | jruby | < any | UNKNOWN |
ubuntu | 14.04 | noarch | ruby1.9.1 | < 1.9.3.484-2ubuntu1.14 | UNKNOWN |
ubuntu | 14.04 | noarch | ruby2.0 | < 2.0.0.484-1ubuntu2.13 | UNKNOWN |
ubuntu | 16.04 | noarch | ruby2.3 | < 2.3.1-2~16.04.12 | UNKNOWN |
ubuntu | 18.04 | noarch | ruby2.5 | < 2.5.1-1ubuntu1.2 | UNKNOWN |
ubuntu | 18.10 | noarch | ruby2.5 | < 2.5.1-5ubuntu4.3 | UNKNOWN |
ubuntu | 19.04 | noarch | ruby2.5 | < 2.5.5-1 | UNKNOWN |
ubuntu | 19.10 | noarch | ruby2.5 | < 2.5.5-1 | UNKNOWN |
blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
bugs.ruby-lang.org/attachments/7669 (for 2.4.5)
bugs.ruby-lang.org/attachments/7670 (for 2.5.3)
launchpad.net/bugs/cve/CVE-2019-8320
nvd.nist.gov/vuln/detail/CVE-2019-8320
security-tracker.debian.org/tracker/CVE-2019-8320
ubuntu.com/security/notices/USN-3945-1
www.cve.org/CVERecord?id=CVE-2019-8320
www.ruby-lang.org/en/news/2019/03/05/multiple-vulnerabilities-in-rubygems/
8.8 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:N/I:C/A:C
7.4 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
0.006 Low
EPSS
Percentile
78.6%