ALPINE-CVE-2019-8320

Advisory lineage Upstream: 1 Downstream: 0
Upstream
Published: 06 Jun 2019, 15:29
Last modified:19 Nov 2025, 06:03

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.4 HIGH
3.0 (osv_alpine)
EPSS Score
No data
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

06 Jun 2019, 15:29
Published
Vulnerability first disclosed
19 Nov 2025, 06:03
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

Affected Systems

  • alpineruby

    < 2.4.6-r0 | < 2.4.6-r0 | < 2.5.5-r0 | < 2.5.5-r0

References (1)