CVE-2019-8320 – rubygems-update
Package
Manager: gem
Name: rubygems-update
Vulnerable Version: >=2.7.6 <2.7.9 || >=3.0.0 <3.0.3
Severity
Level: High
CVSS v3.1: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.06822 pctl0.90962
Details
RubyGems Delete directory using symlink when decompressing tar 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.
Metadata
Created: 2019-06-20T16:06:15Z
Modified: 2023-08-28T13:16:23Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/06/GHSA-5x32-c9mf-49cc/GHSA-5x32-c9mf-49cc.json
CWE IDs: ["CWE-22"]
Alternative ID: GHSA-5x32-c9mf-49cc
Finding: F063
Auto approve: 1