ADVISORIES

Vulnerability

CVE-2019-8320

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.

16 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALBA-2019:3384

    ruby:2.5 bug fix and enhancement update

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 AlmaLinux Updated 29 October 2026
  • ALPINE-CVE-2019-8320

    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…

    CVE-2019-8320 Alpine Updated 21 September 2026
  • DEBIAN-CVE-2019-8320

    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…

    CVE-2019-8320 Debian Updated 21 September 2026
  • DLA-1735-1

    ruby2.1 - security update

    CVE-2019-8320CVE-2019-8322CVE-2019-8323CVE-2019-8324 Debian Updated 20 November 2026
  • DLA-2330-1

    jruby - security update

    CVE-2017-17742CVE-2019-16201CVE-2019-16254CVE-2019-16255 Debian Updated 20 November 2026
  • DSA-4433-1

    ruby2.3 - security update

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 Debian Updated 20 November 2026
  • GHSA-5x32-c9mf-49cc

    RubyGems Delete directory using symlink when decompressing tar

    High CVE-2019-8320 RubyGems Updated 16 February 2024
  • RHBA-2019:3384

    Red Hat Bug Fix Advisory: ruby:2.5 bug fix and enhancement update

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 Red Hat Updated 13 November 2026
  • RHSA-2019:1148

    Red Hat Security Advisory: rh-ruby25-ruby security, bug fix, and enhancement update

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 Red Hat Updated 13 November 2026
  • RHSA-2019:1150

    Red Hat Security Advisory: rh-ruby24-ruby security, bug fix, and enhancement update

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 Red Hat Updated 13 November 2026
  • RHSA-2019:1429

    Red Hat Security Advisory: CloudForms 4.7.5 security, bug fix and enhancement update

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 Red Hat Updated 13 November 2026
  • SUSE-SU-2019:1804-1

    Security update for ruby-bundled-gems-rpmhelper, ruby2.5

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 SUSE Updated 4 February 2026
  • SUSE-SU-2020:1570-1

    Security update for ruby2.1

    CVE-2015-9096CVE-2016-2339CVE-2016-7798CVE-2017-0898 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2019-8320

    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…

    CVE-2019-8320 Ubuntu Updated 19 November 2026
  • USN-3945-1

    ruby1.9.1, ruby2.0, ruby2.3, ruby2.5 vulnerabilities

    CVE-2019-8320CVE-2019-8321CVE-2019-8322CVE-2019-8323 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2019:1771-1

    Security update for ruby-bundled-gems-rpmhelper, ruby2.5

    CVE-2017-17742CVE-2018-1000073CVE-2018-1000074CVE-2018-1000075 openSUSE Updated 4 February 2026

References