{"id":"CVE-2019-8320","published":"2019-06-06T14:50:02Z","modified":"2024-08-04T21:17:31Z","title":"A Directory Traversal issue was discovered in RubyGems 2.7.6 and later through 3.0.2","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04193,"percentile":0.91175,"provenance":"source"},"cwes":[],"references":[{"url":"https://hackerone.com/reports/317321","tags":["x_refsource_MISC"]},{"url":"https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1429","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":18.23}]},"affected":[{"ecosystem":"RubyGems","package":"rubygems-update","vulnerableRanges":[">=2.7.6, <2.7.9",">=3.0.0, <3.0.3"],"patched":["2.7.9","3.0.3"],"from":["GHSA-5x32-c9mf-49cc"],"provenance":"source"}],"summary":{"text":"A directory traversal flaw in RubyGems, present from 2.7.6 through 3.0.2, causes the package manager to delete its install destination before creating directories or touching files, and it does so without properly following symlinks. Exploitation requires a malicious gem to be installed, with the attacker able to guess predictable paths such as /tmp or /usr, and it can lead to arbitrary file deletion, data loss, or an unusable system, which is more likely when gem is run with sudo.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:20:34Z"},"euvd":{"id":"EUVD-2019-0506","exploited":false,"provenance":"source"}}