Skip to content
Server Security Center
KEVhigh7.8

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

Microsoft Malware Protection Engine · listed in the CISA catalog of actively exploited vulnerabilities since 2022-03-03.

CVSS v3.1 (CISA ADP)
7.8
high
EPSS (exploit probability, 30 days)
72%
higher than 99.4% of all CVEs
Added to CISA KEV
2022-03-03
US federal due date 2022-03-24
Automatable (CISA SSVC)
no
technical impact: total

CVE-2017-8540 explained

CVE-2017-8540 is a memory corruption flaw (out-of-bounds write) in the Microsoft Malware Protection Engine used by Microsoft Forefront and Microsoft Defender. The engine does not properly scan a specially crafted file. CISA lists it as known exploited, so affected systems should be checked and updated.

Impact

Microsoft calls this a remote code execution vulnerability. A specially crafted file that the engine scans can corrupt memory and lead to full compromise of confidentiality, integrity and availability. No privileges are needed, but user interaction is required. CISA rates the technical impact as total and the attack as not automatable. Attackers are known to exploit it. Ransomware use is unknown.

Who is affected

The CVE record describes affected versions in free text. It covers the Microsoft Malware Protection Engine in Microsoft Forefront and Microsoft Defender on 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, Windows Server 2016, and Microsoft Exchange Server 2013 and 2016. The CVE record names no fixed version.

Written with AI from the data on this page and checked against it automatically.

Official 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.

CISA required action: Apply updates per vendor instructions.

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • Microsoft Corporation Malware Protection Engine
    Affected
    • 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.
    Fixed in
    not stated

    Version statement as published by the CNA (free text).

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: portal.msrc.microsoft.com/en-US/security-guidance/advisor…
  • CISA's deadline for US federal agencies: 2022-03-24 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Apply the Malware Protection Engine update following Microsoft's advisory, as CISA requires.
  2. Confirm that every Forefront, Defender and Exchange Server installation runs the updated engine version named in the vendor advisory.
  3. Check that automatic engine and definition updates are enabled and working on all affected systems.
  4. Review affected hosts for signs of compromise, since the vulnerability is known to be exploited.

The CVE record names no fixed version. Follow Microsoft's advisory for the updated engine version. Apply updates per vendor instructions, as CISA requires. Until you can confirm the update on each system, review affected hosts for signs of compromise.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-787 Out-of-bounds Write

Questions about CVE-2017-8540

Is CVE-2017-8540 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-03-03, with a US federal due date of 2022-03-24. Whether ransomware campaigns use it is unknown.
Which Microsoft products are affected?
The vulnerable component is the Malware Protection Engine. It runs in Microsoft Forefront and Microsoft Defender on many Windows client and server versions, and in Microsoft Exchange Server 2013 and 2016.
What does CISA require?
CISA's required action is to apply updates per vendor instructions. Use Microsoft's advisory to find the engine update.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.