CVE-2017-8540: Microsoft Malware Protection Engine Improper Restriction of Operations Vulnerability HIGH 7.8 EXPLOITED WATCHLIST UPGRADE MITIGATE DOWNGRADE
CVE-2017-8540 is a high-severity flaw (CVSS 7.8) affecting malware protection engine, endpoint protection, exchange server, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority High severity EPSS top 1%: very likely to be exploited Exploited in the wild (CISA KEV) Public exploit reference On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 7.8 (High) Attack vector Local Attack complexity Low Privileges needed None User interaction Required EPSS exploit chance 71.9% (top 1%) CISA exploited list Yes, fix due 2022-03-24 Weakness CWE-787 Published 2017-05-26 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2017-05-26 20:29 UTC Published CVE record published2022-03-03 Exploited Added to the CISA Known Exploited Vulnerabilities list2022-03-24 Deadline CISA due date for US federal agencies to patch2026-06-17 01:26 UTC Updated Record last modifiedmicrosoft malware protection engine UPGRADE
Affected: >= 1.1.13701.0 and < 1.1.13704.0
Fixed in: 1.1.13704.0
Safe to downgrade to: a release before 1.1.13701.0
1. Check installed version
Copy apt-cache policy malware-protection-engine || rpm -q malware-protection-engine || malware-protection-engine --version
2. UPGRADE to 1.1.13704.0 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade malware-protection-engine
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade malware-protection-engine
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 1.1.13701.0 (Debian / Ubuntu)
Copy apt-cache madison malware-protection-engine
sudo apt install malware-protection-engine=<VERSION_BEFORE_1.1.13701.0>
sudo apt-mark hold malware-protection-engine
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list malware-protection-engine
sudo dnf downgrade malware-protection-engine-<VERSION_BEFORE_1.1.13701.0>
sudo dnf versionlock add malware-protection-engine
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
microsoft endpoint protection MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy endpoint-protection || rpm -q endpoint-protection || endpoint-protection --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
microsoft exchange server DOWNGRADE
Affected: 2013 · 2016
Fixed in: no fixed release known
Safe to downgrade to: a release before 2013
1. Check installed version
Copy apt-cache policy exchange-server || rpm -q exchange-server || exchange-server --version
2. No fixed release: DOWNGRADE to a release before 2013 (Debian / Ubuntu)
Copy apt-cache madison exchange-server
sudo apt install exchange-server=<VERSION_BEFORE_2013>
sudo apt-mark hold exchange-server
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list exchange-server
sudo dnf downgrade exchange-server-<VERSION_BEFORE_2013>
sudo dnf versionlock add exchange-server
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
microsoft forefront endpoint protection DOWNGRADE
Affected: all versions · 2010
Fixed in: no fixed release known
Safe to downgrade to: a release before 2010
1. Check installed version
Copy apt-cache policy forefront-endpoint-protection || rpm -q forefront-endpoint-protection || forefront-endpoint-protection --version
2. No fixed release: DOWNGRADE to a release before 2010 (Debian / Ubuntu)
Copy apt-cache madison forefront-endpoint-protection
sudo apt install forefront-endpoint-protection=<VERSION_BEFORE_2010>
sudo apt-mark hold forefront-endpoint-protection
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list forefront-endpoint-protection
sudo dnf downgrade forefront-endpoint-protection-<VERSION_BEFORE_2010>
sudo dnf versionlock add forefront-endpoint-protection
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
microsoft forefront security MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy forefront-security || rpm -q forefront-security || forefront-security --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
microsoft intune endpoint protection MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy intune-endpoint-protection || rpm -q intune-endpoint-protection || intune-endpoint-protection --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · root ·
FIXED · 6.40.04-7.fc46 · FEDORA-2026-7329868400 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-7329868400
Public exploits and detection Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Quick answers How do I fix CVE-2017-8540? malware protection engine: upgrade to 1.1.13704.0; endpoint protection: mitigate or apply the listed mitigation; exchange server: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2017-8540 being exploited? Yes. CVE-2017-8540 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2017-8540 affect? CVE-2017-8540 affects malware protection engine, endpoint protection, exchange server. Severity is high (CVSS 7.8). 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, 151
How urgent is CVE-2017-8540? Priority 87/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; On your watchlist
Software pages Windows vulnerabilities · Windows Server vulnerabilities · Microsoft Exchange vulnerabilities · Windows Defender vulnerabilities
Related CVEs CVE-2026-69414 HIGH 7.8 MITIGATE Microsoft is aware of an elevation of privilege in the Microsoft Malware Protection Engine in Microsoft DefendCVE-2026-50656 HIGH 7.8 MITIGATE Microsoft is aware of an elevation of privilege in the Microsoft Malware Protection Engine in Microsoft DefendCVE-2026-55011 HIGH 7.8 UPGRADE Integer underflow (wrap or wraparound) in Microsoft Defender allows an unauthorized attacker to execute code lCVE-2026-55012 HIGH 7.8 UPGRADE Integer overflow or wraparound in Microsoft Defender allows an unauthorized attacker to execute code locally.CVE-2021-42298 HIGH 7.8 UPGRADE Microsoft Defender Remote Code Execution VulnerabilityReferences ← Back to latest CVEs