Advisory

UBUNTU-CVE-2019-8320

Also known as: CVE-2019-8320

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.4, vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2019-03-27 00:00 UTC
Modified
2026-04-22 12:21 UTC

Affected packages and fixes

ruby1.9.1

Debian packages (deb) · Ubuntu 14.04

Affected

  • introduced 0, fixed 1.9.3.484-2ubuntu1.14 (ecosystem)

Fixed versions

1.9.3.484-2ubuntu1.14

Fix

  • Fixed version 1.9.3.484-2ubuntu1.14
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby2.0

Debian packages (deb) · Ubuntu 14.04

Affected

  • introduced 0, fixed 2.0.0.484-1ubuntu2.13 (ecosystem)

Fixed versions

2.0.0.484-1ubuntu2.13

Fix

  • Fixed version 2.0.0.484-1ubuntu2.13
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby2.3

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 2.3.1-2~16.04.12 (ecosystem)

Fixed versions

2.3.1-2~16.04.12

Fix

  • Fixed version 2.3.1-2~16.04.12
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby2.5

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.5.1-1ubuntu1.2 (ecosystem)

Fixed versions

2.5.1-1ubuntu1.2

Fix

  • Fixed version 2.5.1-1ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jruby

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences