CVE Vulnerabilities

CVE-2021-32557

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

Published: Jun 12, 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:N/I:H/A:H
CVSS 2.x
3.6 LOW
AV:L/AC:L/Au:N/C:N/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

It was discovered that the process_report() function in data/whoopsie-upload-all allowed arbitrary file writes via symlinks.

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
ApportCanonical2.14.1-0ubuntu3 (including)2.14.1-0ubuntu3.29+esm7 (excluding)
ApportCanonical2.20.1 (including)2.20.1-0ubuntu2.30+esm1 (excluding)
ApportCanonical2.20.9 (including)2.20.9-0ubuntu7.24 (excluding)
ApportCanonical2.20.11-0ubuntu27 (including)2.20.11-0ubuntu27.18 (excluding)
ApportCanonical2.20.11-0ubuntu50 (including)2.20.11-0ubuntu50.7 (excluding)
ApportCanonical2.20.11-0ubuntu65 (including)2.20.11-0ubuntu65.1 (excluding)
ApportUbuntubionic*
ApportUbuntudevel*
ApportUbuntuesm-infra-legacy/trusty*
ApportUbuntuesm-infra/bionic*
ApportUbuntuesm-infra/focal*
ApportUbuntuesm-infra/xenial*
ApportUbuntufocal*
ApportUbuntugroovy*
ApportUbuntuhirsute*
ApportUbuntuimpish*
ApportUbuntujammy*
ApportUbuntutrusty*
ApportUbuntutrusty/esm*
ApportUbuntuxenial*

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