CVE-2019-8320

Advisory lineage Upstream: 0 Downstream: 16
Modified
Published: 06 Jun 2019, 14:50
Last modified:04 Aug 2024, 21:17

Vulnerability Summary

Overall Risk (default)
medium
46/100
CVSS Score
8.8 HIGH
v2.0 (nvd)
EPSS Score
6.22% LOW
6% probability -2.25%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

06 Jun 2019, 14:50
Published
Vulnerability first disclosed
04 Aug 2024, 21:17
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.0HIGHScore: 7.4CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
  • v2.0HIGHScore: 8.8AV:N/AC:M/Au:N/C:N/I:C/A:C

EPSS Trends

Current EPSS score: 6.22% Percentile: 91%

Techniques & Countermeasures

  • CWE-22Improper 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.

Affected Systems

  • rubygemsrubygems

    ≥ 2.7.6, ≤ 3.0.2

References (5)