# CVE-2021-31854: Code injection vulnerability in McAfee Agent

- Priority: **Routine**
- Reason: Not severe (CVSS 7.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-01-19 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-31854 · JSON: https://cvemate.com/vulnerability/CVE-2021-31854/json

## Description

```text
A command Injection Vulnerability in McAfee Agent (MA) for Windows prior to 5.7.5 allows local users to inject arbitrary shell code into the file cleanup.exe. The malicious clean.exe file is placed into the relevant folder and executed by running the McAfee Agent deployment feature located in the System Tree. An attacker may exploit the vulnerability to obtain a reverse shell which can lead to privilege escalation to obtain root privileges.
```

## Signals

- CVSS: 9.3 high (v2.0, NVD) AV:N/AC:M/Au:N/C:C/I:C/A:C
- EPSS: 1.012%, percentile 64.337%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mcafee agent: \< 5.7.5
- mcafee,llc mcafee agent for windows: ≥ unspecified, \< 5.7.5

## References

- <https://kc.mcafee.com/corporate/index?page=content&id=SB10378>

---

Data as of 2026-12-05T06:50:30.635Z. 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
