Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

87
Patch now
HIGH 7.8EXPLOITEDWATCHLISTUPGRADEMITIGATEDOWNGRADE

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 score7.8 (High)
Attack vectorLocal
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance71.9% (top 1%)
CISA exploited listYes, fix due 2022-03-24
WeaknessCWE-787
Published2017-05-26
Last modified2026-06-17
Publisher (CNA): Microsoft Corporation · Vendor: microsoft

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

microsoft 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
apt-cache policy malware-protection-engine || rpm -q malware-protection-engine || malware-protection-engine --version
2. UPGRADE to 1.1.13704.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade malware-protection-engine
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade malware-protection-engine
Note
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)
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)
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
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
apt-cache policy endpoint-protection || rpm -q endpoint-protection || endpoint-protection --version
No fixed or unaffected release known
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
apt-cache policy exchange-server || rpm -q exchange-server || exchange-server --version
2. No fixed release: DOWNGRADE to a release before 2013 (Debian / Ubuntu)
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)
dnf --showduplicates list exchange-server sudo dnf downgrade exchange-server-<VERSION_BEFORE_2013> sudo dnf versionlock add exchange-server
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
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)
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)
dnf --showduplicates list forefront-endpoint-protection sudo dnf downgrade forefront-endpoint-protection-<VERSION_BEFORE_2010> sudo dnf versionlock add forefront-endpoint-protection
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
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
apt-cache policy forefront-security || rpm -q forefront-security || forefront-security --version
No fixed or unaffected release known
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
apt-cache policy intune-endpoint-protection || rpm -q intune-endpoint-protection || intune-endpoint-protection --version
No fixed or unaffected release known
Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · root · FIXED · 6.40.04-7.fc46 · FEDORA-2026-7329868400 · source
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.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.