CVE Vulnerabilities

CVE-2021-32610

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

Published: Jul 30, 2021 | Modified: Nov 07, 2023
CVSS 3.x
7.1
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS 2.x
3.6 LOW
AV:L/AC:L/Au:N/C:P/I:P/A:N
RedHat/V2
RedHat/V3
7.4 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Ubuntu
MEDIUM

In Archive_Tar before 1.4.14, symlinks can refer to targets outside of the extracted archive, a different vulnerability than CVE-2020-36193.

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
Archive_tar Php * 1.4.14 (excluding)
Drupal7 Ubuntu esm-apps/xenial *
Drupal7 Ubuntu esm-infra-legacy/trusty *
Drupal7 Ubuntu trusty *
Drupal7 Ubuntu trusty/esm *
Drupal7 Ubuntu xenial *
Php-pear Ubuntu bionic *
Php-pear Ubuntu devel *
Php-pear Ubuntu esm-infra/xenial *
Php-pear Ubuntu focal *
Php-pear Ubuntu hirsute *
Php-pear Ubuntu impish *
Php-pear Ubuntu jammy *
Php-pear Ubuntu kinetic *
Php-pear Ubuntu lunar *
Php-pear Ubuntu mantic *
Php-pear Ubuntu noble *
Php-pear Ubuntu oracular *
Php-pear Ubuntu trusty *
Php-pear Ubuntu xenial *
Red Hat Enterprise Linux 8 RedHat php:7.4-8070020220707122009.afd00e68 *

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