# CVE-2017-8540: Malware Protection Engine Improper Restriction of Operations

- Vendor: Microsoft, Malware Protection Engine
- Severity: HIGH (CVSS 3.1 7.8)
- Exploited (CISA KEV): yes, added 2022-03-03
- EPSS: 71.9% on 2026-12-02
- Public exploit: not checked
- Patch available: no or unknown
- Vendor advisory: https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-8540
- Published: 2017-05-25; updated: 2017-08-12
- Page: https://patchtonight.com/cve/CVE-2017-8540/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Malware Protection Engine Microsoft Forefront and Microsoft Defender on Microsoft Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1, Windows Server 2012 Gold and R2, Windows RT 8 | See the advisory |

## The vendor's description

The Microsoft Malware Protection Engine running on Microsoft Forefront and Microsoft Defender on Microsoft Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8.1, Windows Server 2012 Gold and R2, Windows RT 8.1, Windows 10 Gold, 1511, 1607, and 1703, and Windows Server 2016, Microsoft Exchange Server 2013 and 2016, does not properly scan a specially crafted file leading to memory corruption. aka "Microsoft Malware Protection Engine Remote Code Execution Vulnerability", a different vulnerability than CVE-2017-8538 and CVE-2017-8541.

## Sources

- [Microsoft advisory](https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-8540)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
