CVE Vulnerabilities

CVE-2021-32610

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

Published: Jul 30, 2021 | Modified: Nov 21, 2024
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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
Archive_tarPhp*1.4.14 (excluding)
Red Hat Enterprise Linux 8RedHatphp:7.4-8070020220707122009.afd00e68*
Drupal7Ubuntuesm-apps/xenial*
Drupal7Ubuntuesm-infra-legacy/trusty*
Drupal7Ubuntutrusty*
Drupal7Ubuntutrusty/esm*
Drupal7Ubuntuxenial*
Php-pearUbuntubionic*
Php-pearUbuntudevel*
Php-pearUbuntuesm-infra/bionic*
Php-pearUbuntuesm-infra/focal*
Php-pearUbuntuesm-infra/xenial*
Php-pearUbuntufocal*
Php-pearUbuntuhirsute*
Php-pearUbuntuimpish*
Php-pearUbuntujammy*
Php-pearUbuntukinetic*
Php-pearUbuntulunar*
Php-pearUbuntumantic*
Php-pearUbuntunoble*
Php-pearUbuntuoracular*
Php-pearUbuntuplucky*
Php-pearUbuntuquesting*
Php-pearUbuntutrusty*
Php-pearUbuntuxenial*

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