# CVE-2021-31840: DLL preload vulnerability in McAfee Agent for Windows

- Severity: High 7.3 (CVSS:3.1, scored by trellix) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/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): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2021-06-10T16:20:12.000Z
- Modified: 2026-06-17T03:52:19.747Z
- Weaknesses: CWE-427
- Assigned by: trellix

## Description

A vulnerability in the preloading mechanism of specific dynamic link libraries in McAfee Agent for Windows prior to 5.7.3 could allow an authenticated, local attacker to perform a DLL preloading attack with unsigned DLLs. To exploit this vulnerability, the attacker would need to have valid credentials on the Windows system. This would result in the user gaining elevated permissions and being able to execute arbitrary code.

(As written by CVE List.)

## Affected

- McAfee,LLC McAfee Agent for Windows: from unspecified before 5.7.3
- mcafee mcafee_agent: from 5.0.0 before 5.7.3

## Every score

- trellix: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.4 Medium `AV:L/AC:M/Au:N/C:P/I:P/A:P`

## References

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

## Sources

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

---

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