Directory Traversal

Affecting ruby2.3 package, versions <2.3.3-1+deb9u6

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

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.

References

CVSS Score

7.4
high severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    None
  • Integrity
    High
  • Availability
    High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
CVE
CVE-2019-8320
CWE
CWE-22
Snyk ID
SNYK-DEBIAN9-RUBY23-341480
Disclosed
06 Jun, 2019
Published
27 Mar, 2019