cbcvebase.
CVE-2019-8320
published 2019-06-06

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…

PriorityP346high7.4CVSS 3.0
AVNACHPRNUINSUCNIHAH
EPSS
4.21%
89.9th percentile
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

10 ranges
VendorProductVersion rangeFixed in
debianjruby< jruby 9.1.17.0-3 (bookworm)jruby 9.1.17.0-3 (bookworm)
debianrubygems< jruby 9.1.17.0-3 (bookworm)jruby 9.1.17.0-3 (bookworm)
jrubyjruby>= 0 < 9.1.17.0-39.1.17.0-3
jrubyjruby>= 0 < 9.1.17.0-39.1.17.0-3
jrubyjruby>= 0 < 9.1.17.0-39.1.17.0-3
rubygemsrubygems>= 0 < 3.2.0~rc.1-13.2.0~rc.1-1
rubygemsrubygems>= 0 < 3.2.0~rc.1-13.2.0~rc.1-1
rubygemsrubygems>= 0 < 3.2.0~rc.1-13.2.0~rc.1-1
rubygemsrubygems>= 0 < 3.2.0~rc.1-13.2.0~rc.1-1
rubygemsrubygems2.7.6 – 3.0.2

CVSS provenance

nvdv3.07.4HIGHCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
nvdv2.08.8HIGHAV:N/AC:M/Au:N/C:N/I:C/A:C
osv7.4HIGH
vendor_debian7.4HIGH
vendor_redhat7.4HIGH
vendor_ubuntu7.4HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.