Search for vulnerabilities
Vulnerability details: VCID-fwds-unu4-n7gn
Vulnerability ID VCID-fwds-unu4-n7gn
Aliases CVE-2019-8320
GHSA-5x32-c9mf-49cc
Summary 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.
Status Published
Exploitability 0.5
Weighted Severity 8.0
Risk 4.0
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
cvssv3.1 7.4 http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
generic_textual HIGH http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
cvssv3.1 7.4 https://access.redhat.com/errata/RHSA-2019:1429
generic_textual HIGH https://access.redhat.com/errata/RHSA-2019:1429
cvssv3 7.4 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-8320.json
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
epss 0.06652 https://api.first.org/data/v1/epss?cve=CVE-2019-8320
cvssv3 7.4 https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
cvssv3.1 7.4 https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
generic_textual HIGH https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
cvssv3 7.4 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1_qr HIGH https://github.com/advisories/GHSA-5x32-c9mf-49cc
cvssv3.1 7.4 https://github.com/rubygems/rubygems
generic_textual HIGH https://github.com/rubygems/rubygems
cvssv3.1 7.4 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8320.yml
generic_textual HIGH https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8320.yml
cvssv3.1 7.4 https://hackerone.com/reports/317321
generic_textual HIGH https://hackerone.com/reports/317321
cvssv3.1 7.4 https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
generic_textual HIGH https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
cvssv2 8.8 https://nvd.nist.gov/vuln/detail/CVE-2019-8320
cvssv3 7.4 https://nvd.nist.gov/vuln/detail/CVE-2019-8320
cvssv3.1 7.4 https://nvd.nist.gov/vuln/detail/CVE-2019-8320
generic_textual HIGH https://nvd.nist.gov/vuln/detail/CVE-2019-8320
Reference id Reference type URL
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
https://access.redhat.com/errata/RHSA-2019:1429
https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-8320.json
https://api.first.org/data/v1/epss?cve=CVE-2019-8320
https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8320
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8321
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8322
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8323
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8324
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-8325
https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
https://github.com/rubygems/rubygems
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8320.yml
https://hackerone.com/reports/317321
https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
https://nvd.nist.gov/vuln/detail/CVE-2019-8320
1692512 https://bugzilla.redhat.com/show_bug.cgi?id=1692512
925987 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925987
cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:*
GHSA-5x32-c9mf-49cc https://github.com/advisories/GHSA-5x32-c9mf-49cc
RHSA-2019:1148 https://access.redhat.com/errata/RHSA-2019:1148
RHSA-2019:1150 https://access.redhat.com/errata/RHSA-2019:1150
USN-3945-1 https://usn.ubuntu.com/3945-1/
No exploits are available.
Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://access.redhat.com/errata/RHSA-2019:1429
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-8320.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://github.com/rubygems/rubygems
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8320.yml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://hackerone.com/reports/317321
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: AV:N/AC:M/Au:N/C:N/I:C/A:C Found at https://nvd.nist.gov/vuln/detail/CVE-2019-8320
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2019-8320
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2019-8320
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.90757
EPSS Score 0.06652
Published At July 8, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-01T12:16:33.266622+00:00 Ubuntu USN Importer Import https://usn.ubuntu.com/3945-1/ 36.1.3