CVE-2020-8831: Apport - Symlink Attack Privilege Escalation
- Cve: CVE-2020-8831
- Name: Apport - Symlink Attack Privilege Escalation
- Description: Apport creates a world writable lock file with root ownership in the world writable /var/lock/apport directory. If the apport/ directory does not exist (this is not uncommon as /var/lock is a tmpfs), it will create the directory, otherwise it will simply continue execution using the existing directory. This allows for a symlink attack if an attacker were to create a symlink at /var/lock/apport, changing apport's lock file location. This file could then be used to escalate privileges, for example. Fixed in versions 2.20.1-0ubuntu2.23, 2.20.9-0ubuntu7.14, 2.20.11-0ubuntu8.8 and 2.20.11-0ubuntu22.
- Impact: Attackers can exploit the symlink to escalate privileges or manipulate lock files, potentially leading to system compromise.
- Remediation: Update to versions 2.20.1-0ubuntu2.23, 2.20.9-0ubuntu7.14, 2.20.11-0ubuntu8.8, or 2.20.11-0ubuntu22.
- Vulnerability type: symlink_attack
- Vulnerability impact: privilege_escalation
- Requirement type: user_interaction
- Requirements: Attacker needs to create a symlink at /var/lock/apport
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00651
- Epss percentile: 0.52156
- Assignee: [email protected]
- Published at: 2020-04-22T22:15:12Z
- Age in days: 2407
- Modified at: 2026-06-17T03:27:01Z
- Public exploits total: 1
- References total: 3
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-8831
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-379 | Creation of Temporary File in Directory with Insecure Permissions |
| CWE-59 | Improper Link Resolution Before File Access |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://launchpad.net/bugs/1862348 | nvd | 2020-04-22 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://launchpad.net/bugs/1862348 | Exploit, Third Party Advisory |
| https://usn.ubuntu.com/4315-1/ | Third Party Advisory |
| https://usn.ubuntu.com/4315-2/ | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apport_project:apport | all versions | no | nvd | /v1/products/apport_project/apport |
| canonical:ubuntu_linux | = 19.10, = 18.04, = 16.04, = 14.04 | no | nvd | /v1/products/canonical/ubuntu_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-04-22
- Authentication required: yes
- Exposed hosts: 21216412
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports