CVE Vulnerabilities

CVE-2021-32557

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

Published: Jun 12, 2021 | Modified: Jun 23, 2021
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

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

Name Vendor Start Version End Version
Apport Canonical 2.14.1-0ubuntu3 (including) 2.14.1-0ubuntu3.29+esm7 (excluding)
Apport Canonical 2.20.1 (including) 2.20.1-0ubuntu2.30+esm1 (excluding)
Apport Canonical 2.20.9 (including) 2.20.9-0ubuntu7.24 (excluding)
Apport Canonical 2.20.11-0ubuntu27 (including) 2.20.11-0ubuntu27.18 (excluding)
Apport Canonical 2.20.11-0ubuntu50 (including) 2.20.11-0ubuntu50.7 (excluding)
Apport Canonical 2.20.11-0ubuntu65 (including) 2.20.11-0ubuntu65.1 (excluding)

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