cve.bz

CVE-2021-27216 (21Nails) exim exim: Race Condition

6.3 mediumExploit referenceEPSS 1.0%

Known as 21Nails

Medium (6.3) in exim exim. EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-27216 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-27216?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-27216?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-27216 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
exim:eximbefore 4.94.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14exim44.94.2-1DEBIAN-CVE-2021-27216
Ubuntu18.04:LTSexim44.90.1-1ubuntu1.8UBUNTU-CVE-2021-27216 USN-4934-1
Ubuntu20.04:LTSexim44.93-13ubuntu1.5UBUNTU-CVE-2021-27216 USN-4934-1
UbuntuPro:14.04:LTSexim44.82-3ubuntu2.4+esm3UBUNTU-CVE-2021-27216 USN-4934-2
UbuntuPro:16.04:LTSexim44.86.2-2ubuntu2.6+esm1UBUNTU-CVE-2021-27216 USN-4934-2
Alpinev3.13, v3.14, v3.15 and 9 moreexim4.94.2-r0ALPINE-CVE-2021-27216

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON