National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2019-8320 Detail

Current Description

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.

Source:  MITRE
View Analysis Description

Impact

CVSS v3.0 Severity and Metrics:

Base Score: 7.4 HIGH
Vector: AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H (V3.0 legend)
Impact Score: 5.2
Exploitability Score: 2.2


Attack Vector (AV): Network
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope (S): Unchanged
Confidentiality (C): None
Integrity (I): High
Availability (A): High

CVSS v2.0 Severity and Metrics:

Base Score: 8.8 HIGH
Vector: (AV:N/AC:M/Au:N/C:N/I:C/A:C) (V2 legend)
Impact Subscore: 9.2
Exploitability Subscore: 8.6


Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (AU): None
Confidentiality (C): None
Integrity (I): Complete
Availability (A): Complete
Additional Information:
Allows unauthorized modification
Allows disruption of service

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
https://access.redhat.com/errata/RHSA-2019:1429
https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html Vendor Advisory
https://hackerone.com/reports/317321 Exploit Third Party Advisory

Technical Details

Vulnerability Type (View All)

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
2.7.6
Up to (including)
3.0.2


Change History

3 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2019-8320
NVD Published Date:
06/06/2019
NVD Last Modified:
06/11/2019