# CVE-2021-27216: Exim 4 before 4.94.2 has Execution with Unnecessary Privileges.

- Severity: Medium 6.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-05-06T04:44:50.000Z
- Modified: 2026-06-17T03:44:29.010Z
- Weaknesses: CWE-362
- Assigned by: mitre

## Description

Exim 4 before 4.94.2 has Execution with Unnecessary Privileges. By leveraging a delete_pid_file race condition, a local user can delete arbitrary files as root. This involves the -oP and -oPX options.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- exim exim: before 4.94.2

## Every score

- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 6.3 Medium `AV:L/AC:M/Au:N/C:N/I:C/A:C`

## References

- <https://www.exim.org/static/doc/security/CVE-2020-qualys/CVE-2020-28007-LFDIR.txt> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2021-27216](https://www.cve.org/CVERecord?id=CVE-2021-27216), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-27216](https://nvd.nist.gov/vuln/detail/CVE-2021-27216), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-27216 · Whole record: https://cve.day/CVE-2021-27216.json · Rebuilt by cve.day 2026-11-25T22:58:01.174Z
