CVE-2021-31854: McAfee Agent

High severity, CVSS 7.8. EPSS: 1.0% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • McAfee Agent, before 5.7.5: fixed in 5.7.5

Affected products

Published 2022-01-19. Last modified 2026-06-17.