{"answers":{"affected":"It affects 9 products.","exploited":"Yes. Attackers have exploited CVE-2017-8540 in the wild since at least 3 Mar 2022.","fix":"No fix has been published for CVE-2017-8540 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 24 Mar 2022.","what":"CVE-2017-8540 is a high-severity memory corruption vulnerability in Microsoft Exchange Server, published on 26 May 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-8540 and fix it if it is affected.\n\nWhat it is: CVE-2017-8540 is a high-severity memory corruption vulnerability in Microsoft Exchange Server, published on 26 May 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: Yes. Attackers have exploited CVE-2017-8540 in the wild since at least 3 Mar 2022.\n\nAffected product: Microsoft Exchange Server. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-8540/ (Markdown: https://insights.sbomify.com/CVE-2017-8540/index.md)","id":"CVE-2017-8540","markdown":"https://insights.sbomify.com/CVE-2017-8540/index.md","name":"CVE-2017-8540","record":{"aliases":["GHSA-342q-x494-83vw"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Windows Defender Engine","requires_auth":"none","summary":"Remote attackers can execute arbitrary code by sending a specially crafted file to the Microsoft Malware Protection Engine.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"endpoint_protection","vendor":"microsoft"},{"product":"exchange_server","vendor":"microsoft"},{"product":"forefront_endpoint_protection","vendor":"microsoft"},{"product":"forefront_security","vendor":"microsoft"},{"product":"intune_endpoint_protection","vendor":"microsoft"},{"product":"malware_protection_engine","vendor":"microsoft"},{"product":"security_essentials","vendor":"microsoft"},{"product":"system_center_endpoint_protection","vendor":"microsoft"},{"product":"windows_defender","vendor":"microsoft"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2017-05-30","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2017-05-30","kind":"exploitdb","ref":"42088","stars":null,"title":"Microsoft MsMpEng - Remote Use-After-Free Due to Design Issue in GC Engine"}],"tier":"exploited"},"has_fix":null,"headline":"Microsoft Malware Protection Engine Improper Restriction of Operations","id":"CVE-2017-8540","indexable":true,"kev":{"dateAdded":"2022-03-03","dueDate":"2022-03-24","knownRansomwareCampaignUse":"Unknown","product":"Malware Protection Engine","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Microsoft","vulnerabilityName":"Microsoft Malware Protection Engine Improper Restriction of Operations Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"microsoft:exchange_server","products":["microsoft:exchange_server"],"type":"memory_corruption","year":"2017"},"n_packages":0,"n_references":4,"next":{"headline":"Memory corruption in Malware Protection Engine","id":"CVE-2017-8541"},"packages":[],"prev":{"headline":"Denial of service in Malware Protection Engine","id":"CVE-2017-8539"},"products":["Malware Protection Engine"],"published":"2017-05-26","related":[{"cvss_score":7.8,"headline":"Microsoft Defender Elevation of Privilege Vulnerability","id":"CVE-2021-24092","kev_date_added":null,"published":"2021-02-25"},{"cvss_score":7.8,"headline":"Memory corruption in Microsoft Malware Protection Engine","id":"CVE-2017-8558","kev_date_added":null,"published":"2017-06-29"},{"cvss_score":5.5,"headline":"Denial of service in Malware Protection Engine","id":"CVE-2017-8535","kev_date_added":null,"published":"2017-05-26"},{"cvss_score":5.5,"headline":"Denial of service in Malware Protection Engine","id":"CVE-2017-8536","kev_date_added":null,"published":"2017-05-26"},{"cvss_score":5.5,"headline":"Denial of service in Malware Protection Engine","id":"CVE-2017-8537","kev_date_added":null,"published":"2017-05-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Microsoft Corporation"]},"summary":"Remote attackers can execute arbitrary code by sending a specially crafted file to the Microsoft Malware Protection Engine.","url":"https://insights.sbomify.com/CVE-2017-8540/"}