Loading HuntDB...

CVE-2019-8320

UNKNOWN
Published 2019-06-06T14:50:02
Actions:

Expert Analysis

Professional remediation guidance

Get tailored security recommendations from our analyst team for CVE-2019-8320. We'll provide specific mitigation strategies based on your environment and risk profile.

No CVSS data available

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.

Available Exploits

No exploits available for this CVE.

Related News

No news articles found for this CVE.

GitHub Security Advisories

Community-driven vulnerability intelligence from GitHub

✓ GitHub Reviewed HIGH

RubyGems Delete directory using symlink when decompressing tar

GHSA-5x32-c9mf-49cc

Advisory Details

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.

Affected Packages

RubyGems rubygems-update
ECOSYSTEM: ≥2.7.6 <2.7.9
RubyGems rubygems-update
ECOSYSTEM: ≥3.0.0 <3.0.3

CVSS Scoring

CVSS Score

7.5

CVSS Vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Advisory provided by GitHub Security Advisory Database. Published: June 20, 2019, Modified: August 28, 2023

References

Published: 2019-06-06T14:50:02
Last Modified: 2024-08-04T21:17:31.038Z
Copied to clipboard!