CVE-2019-8320

Impact:
Moderate
Public Date:
2019-03-05
CWE:
CWE-22
Bugzilla:
1692512: CVE-2019-8320 rubygems: Delete directory using symlink when decompressing tar

The MITRE CVE dictionary describes this issue as:

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.

Find out more about CVE-2019-8320 from the MITRE CVE dictionary dictionary and NIST NVD.

Statement

Red Hat Enterprise Linux 8:
This vulnerability is currently targeted to be addressed in an upcoming release.

Red Hat Software Collections for Red Hat Enterprise Linux (rh-ruby23-ruby):
This vulnerability has been rated as having a security impact of Moderate. After evaluation and in accordance with the criteria noted in the product support life cycle, there are no plans to address this issue in an upcoming release. Please contact Red Hat Support for further information.

Red Hat Software Collections for Red Hat Enterprise Linux (rh-ruby26-ruby):
This vulnerability is currently targeted to be addressed in an upcoming release.

CVSS v3 metrics

CVSS3 Base Score 7.4
CVSS3 Base Metrics CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity Impact High
Availability Impact High

Red Hat Security Errata

Platform Errata Release Date
Red Hat Software Collections for Red Hat Enterprise Linux 7 (rh-ruby25-ruby) RHSA-2019:1148 2019-05-13
Red Hat Software Collections for Red Hat Enterprise Linux 7 (rh-ruby24-ruby) RHSA-2019:1150 2019-05-13
Red Hat Software Collections for Red Hat Enterprise Linux 6 (rh-ruby24-ruby) RHSA-2019:1150 2019-05-13
CloudForms Management Engine 5.10 (ruby) RHSA-2019:1429 2019-06-11

Affected Packages State

Platform Package State
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby23-ruby Will not fix
Red Hat Software Collections for Red Hat Enterprise Linux rh-ruby26-ruby Affected
Red Hat Enterprise Linux 8 ruby Affected
Red Hat Enterprise Linux 7 ruby Not affected
Red Hat Enterprise Linux 6 rubygems Not affected
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.
Last Modified

CVE description copyright © 2017, The MITRE Corporation