# CVE-2020-8831: World writable root owned lock file created in user controllable location

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-04-22 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2020-8831
- Record: https://cvemate.com/vulnerability/CVE-2020-8831 · JSON: https://cvemate.com/vulnerability/CVE-2020-8831/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- EPSS: 0.651%, percentile 52.61%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- apport\_project apport: na
- canonical apport: ≥ 2.20.1, \< 2.20.1-0ubuntu2.23 \| ≥ 2.20.9, \< 2.20.9-0ubuntu7.14 \| ≥ 2.20.11, \< 2.20.11-0ubuntu8.8
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 18.04 \| 19.10
- ubuntu apport (Ubuntu): \< 2.14.1-0ubuntu3.29+esm4 \| \< 2.20.1-0ubuntu2.23 \| \< 2.20.9-0ubuntu7.14 \| \< 2.20.11-0ubuntu22

## References

- <https://launchpad.net/bugs/1862348>
- <https://usn.ubuntu.com/4315-1/>
- <https://usn.ubuntu.com/4315-2/>
- <https://ubuntu.com/security/CVE-2020-8831>
- <https://ubuntu.com/security/notices/USN-4315-1>
- <https://ubuntu.com/security/notices/USN-4315-2>
- <https://www.cve.org/CVERecord?id=CVE-2020-8831>

---

Data as of 2026-12-05T03:08:55.626Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
