LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

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

RBRecent Breaches Vulnerability Intelligence·Mar 3, 2022
CVSS 7.8 · High⚠ Actively exploited (CISA KEV)
7.8
CVSS score
High
Severity
Active
CISA KEV
No
Ransomware use
Mar 24, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2017-8540 to its Known Exploited Vulnerabilities catalog on Mar 3, 2022, with a federal patch deadline of Mar 24, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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.

CVE-2017-8540: Microsoft Malware Protection Engine memory corruption

CVE-2017-8540 is a remote code execution vulnerability in the Microsoft Malware Protection Engine, the scanning component used by Microsoft Defender, Microsoft Forefront, and related antivirus features on supported Windows and Exchange Server platforms. When the engine processes a specially crafted file, improper handling can lead to memory corruption.

Because the engine often inspects untrusted content automatically—email attachments, downloads, or files on disk—successful abuse could let an attacker run code in the context of the protection service. That makes timely identification and patching important for IT and security teams responsible for Windows endpoints and mail servers.

How it works

The weakness is classified as CWE-119 (improper restriction of operations within the bounds of a memory buffer). In practical terms, the Malware Protection Engine does not correctly constrain how it handles certain input while scanning a crafted file. That failure can corrupt memory.

An attacker would need to deliver a specially crafted file so that the engine scans it. On systems where real-time or on-access scanning is enabled, simply placing or receiving the file may be enough to trigger the flaw. Public detail on exact exploit mechanics is limited; defenders should treat this as a memory-corruption RCE in the antivirus scanning path and confirm technical specifics against the vendor advisory rather than assuming particular delivery methods or payloads.

Am I affected? How to find it in your systems

The vulnerable component is the Microsoft Malware Protection Engine when it runs under Microsoft Forefront or Microsoft Defender. CISA notes it 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, Windows Server 2016, and Microsoft Exchange Server 2013 and 2016. Exact engine build numbers and which configurations are vulnerable must be confirmed against the Microsoft advisory.

If your environment has long since moved past the listed OS and Exchange releases, residual risk is lower, but legacy or air-gapped systems may still carry the old engine.

How to remediate

Patch first. Apply the updates Microsoft released for the Malware Protection Engine per the vendor advisory and CISA’s direction to “apply updates per vendor instructions.” Engine updates are often delivered through Windows Update, Microsoft Update, or your existing Defender/Forefront management channel and may not require a full OS upgrade.

If you can't patch immediately

Compensating controls reduce but do not eliminate risk until the engine is updated:

If your data may have been exposed

Actively exploited memory-corruption bugs in security products can lead to full host compromise and subsequent data theft. Ransomware use of this specific CVE is not documented in the provided facts. If you suspect exploitation, isolate affected hosts, preserve forensic evidence, and follow your incident-response process. You can also run a free exposure scan of your email addresses against known breach data to see whether credentials or personal information have appeared in prior incidents unrelated to this vulnerability.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedMicrosoft · Malware Protection Engine
WeaknessCWE-787
CVSS base score7.8 (High)
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PublishedMay 26, 2017
Added to CISA KEVMar 3, 2022
Federal patch deadlineMar 24, 2022
Known ransomware useNot documented
Check if your data is exposed →

References

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities