CVE-2019-8320
Published Jun 6, 2019
Last updated 4 years ago
Overview
- 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.
- Source
- cve@mitre.org
- NVD status
- Modified
Risk scores
CVSS 3.0
- Type
- Primary
- Base score
- 7.4
- Impact score
- 5.2
- Exploitability score
- 2.2
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
- Severity
- HIGH
CVSS 2.0
- Type
- Primary
- Base score
- 8.8
- Impact score
- 9.2
- Exploitability score
- 8.6
- Vector string
- AV:N/AC:M/Au:N/C:N/I:C/A:C
Weaknesses
- nvd@nist.gov
- CWE-22
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "1F19DA38-964A-4AE9-9BB5-1359F1BF1F0B", "versionEndIncluding": "3.0.2", "versionStartIncluding": "2.7.6" } ], "operator": "OR" } ] } ]