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

- Severity: High 7.7 (CVSS:3.1, scored by trellix) `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/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): 1.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2022-01-19T11:00:16.000Z
- Modified: 2026-06-17T03:52:21.217Z
- Weaknesses: CWE-78
- Assigned by: trellix

## Description

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.

(As written by CVE List.)

## Affected

- McAfee,LLC McAfee Agent for Windows: from unspecified before 5.7.5
- mcafee agent: before 5.7.5

## Every score

- trellix: CVSS:3.1 7.7 High `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.3 High `AV:N/AC:M/Au:N/C:C/I:C/A:C`

## References

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

## Sources

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

---

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