CVE Vulnerabilities

CVE-2018-1000544

Improper Link Resolution Before File Access ('Link Following')

Published: Jun 26, 2018 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
4.8 MODERATE
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Ubuntu
MEDIUM

rubyzip gem rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability in Zip::File component that can result in write arbitrary files to the filesystem. This attack appear to be exploitable via If a site allows uploading of .zip files , an attacker can upload a malicious file that contains symlinks or files with absolute pathnames ../ to write arbitrary files to the filesystem..

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Rubyzip Rubyzip_project * 1.2.1 (including)
Ruby-zip Ubuntu artful *
Ruby-zip Ubuntu bionic *
Ruby-zip Ubuntu esm-apps/xenial *
Ruby-zip Ubuntu upstream *
Ruby-zip Ubuntu xenial *
CloudForms Management Engine 5.9 RedHat ansible-tower-0:3.2.7-1.el7at *
CloudForms Management Engine 5.9 RedHat cfme-0:5.9.5.3-1.el7cf *
CloudForms Management Engine 5.9 RedHat cfme-amazon-smartstate-0:5.9.5.3-1.el7cf *
CloudForms Management Engine 5.9 RedHat cfme-appliance-0:5.9.5.3-1.el7cf *
CloudForms Management Engine 5.9 RedHat cfme-gemset-0:5.9.5.3-1.el7cf *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References