{"answers":{"affected":"It affects 6 products.","exploited":"Yes. Attackers have exploited CVE-2017-0199 in the wild since at least 3 Nov 2021, including in ransomware campaigns.","fix":"No fix has been published for CVE-2017-0199 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.","what":"CVE-2017-0199 is a high-severity code injection vulnerability in Microsoft Office, published on 12 Apr 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-0199 and fix it if it is affected.\n\nWhat it is: CVE-2017-0199 is a high-severity code injection vulnerability in Microsoft Office, published on 12 Apr 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-0199 in the wild since at least 3 Nov 2021, including in ransomware campaigns.\n\nAffected product: Microsoft Office. 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-0199/ (Markdown: https://insights.sbomify.com/CVE-2017-0199/index.md)","id":"CVE-2017-0199","markdown":"https://insights.sbomify.com/CVE-2017-0199/index.md","name":"CVE-2017-0199","record":{"aliases":["GHSA-mrf9-75pc-cjmm"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Microsoft Office","requires_auth":"none","summary":"Remote attackers can execute arbitrary code by tricking users into opening a crafted document in Microsoft Office or WordPad.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"office","vendor":"microsoft"},{"product":"windows_7","vendor":"microsoft"},{"product":"windows_server_2008","vendor":"microsoft"},{"product":"windows_server_2012","vendor":"microsoft"},{"product":"windows_vista","vendor":"microsoft"},{"product":"intellispace_portal","vendor":"philips"}],"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":[],"description":"Microsoft Office 2007 SP3, Microsoft Office 2010 SP2, Microsoft Office 2013 SP1, Microsoft Office 2016, Microsoft Windows Vista SP2, Windows Server 2008 SP2, Windows 7 SP1, Windows 8.1 allow remote attackers to execute arbitrary code via a crafted document, aka \"Microsoft Office/WordPad Remote Code Execution Vulnerability w/Windows API.\"","ecosystems":[],"exploits":{"exploitdb":3,"first_seen":"2017-04-13","github_poc":23,"max_poc_stars":726,"metasploit":1,"nuclei":0,"refs":[{"date":"2017-04-17T08:10:07Z","kind":"github_poc","ref":"https://github.com/bhdresh/CVE-2017-0199","stars":726,"title":"Exploit toolkit CVE-2017-0199 - v4.0 is a handy python script which provides pentesters and security researchers a quick and effective way to test Microsoft Office RCE. It could generate a malicious RTF/PPSX file and deliver metasploit / meterpreter / other payload to victim without any complex configuration."},{"date":"2017-04-19T04:15:54Z","kind":"github_poc","ref":"https://github.com/haibara3839/CVE-2017-0199-master","stars":16,"title":"CVE-2017-0199"},{"date":"2017-04-18T06:33:45Z","kind":"github_poc","ref":"https://github.com/NotAwful/CVE-2017-0199-Fix","stars":13,"title":"Quick and dirty fix to OLE2 executing code via .hta"},{"date":"2017-04-13T16:40:27Z","kind":"github_poc","ref":"https://github.com/SyFi/cve-2017-0199","stars":12,"title":null},{"date":"2017-04-22T04:01:38Z","kind":"github_poc","ref":"https://github.com/Exploit-install/CVE-2017-0199","stars":7,"title":"Exploit toolkit CVE-2017-0199 - v2.0 is a handy python script which provides a quick and effective way to exploit Microsoft RTF RCE. It could generate a malicious RTF file and deliver metasploit / meterpreter / any other payload to victim without any complex configuration."},{"date":"2017-12-08T09:45:25Z","kind":"github_poc","ref":"https://github.com/jacobsoo/RTF-Cleaner","stars":3,"title":"RTF Cleaner, tries to extract URL from malicious RTF samples using CVE-2017-0199 \u0026 CVE-2017-8759"},{"date":"2017-04-22T11:32:39Z","kind":"github_poc","ref":"https://github.com/mzakyz666/PoC-CVE-2017-0199","stars":2,"title":"Exploit toolkit for vulnerability RCE Microsoft RTF"},{"date":"2017-04-23T13:58:30Z","kind":"github_poc","ref":"https://github.com/n1shant-sinha/CVE-2017-0199","stars":2,"title":"Exploit toolkit CVE-2017-0199 - v2.0 is a handy python script which provides a quick and effective way to exploit Microsoft RTF RCE. It could generate a malicious RTF file and deliver metasploit / meterpreter payload to victim without any complex configuration."}],"tier":"exploited"},"has_fix":null,"headline":"Microsoft Office and WordPad Remote Code Execution","id":"CVE-2017-0199","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Known","product":"Office and WordPad","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Microsoft","vulnerabilityName":"Microsoft Office and WordPad Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"microsoft:office","products":["microsoft:office","microsoft:windows_7","microsoft:windows_server_2008","microsoft:windows_server_2012","microsoft:windows_vista"],"type":"code_injection","year":"2017"},"n_packages":0,"n_references":11,"next":{"headline":"Memory corruption in Edge","id":"CVE-2017-0200"},"packages":[],"prev":{"headline":"Code injection in Office","id":"CVE-2017-0197"},"products":["Office/WordPad"],"published":"2017-04-12","related":[{"cvss_score":8.8,"headline":"Microsoft Office Memory Corruption","id":"CVE-2018-0798","kev_date_added":"2021-11-03","published":"2018-01-10"},{"cvss_score":8.8,"headline":"Microsoft Office Uninitialized Memory Use","id":"CVE-2015-1770","kev_date_added":"2022-03-28","published":"2015-06-10"},{"cvss_score":8.8,"headline":"Microsoft Word Malformed Object Pointer","id":"CVE-2006-2492","kev_date_added":"2022-06-08","published":"2006-05-20"},{"cvss_score":7.8,"headline":"Microsoft Office Memory Corruption","id":"CVE-2018-0802","kev_date_added":"2021-11-03","published":"2018-01-10"},{"cvss_score":7.8,"headline":"Microsoft Office Memory Corruption","id":"CVE-2017-11882","kev_date_added":"2021-11-03","published":"2017-11-15"},{"cvss_score":7.8,"headline":"Microsoft Office Remote Code Execution","id":"CVE-2017-8570","kev_date_added":"2022-02-25","published":"2017-07-11"},{"cvss_score":7.8,"headline":"Microsoft Office Use-After-Free","id":"CVE-2017-0261","kev_date_added":"2022-03-03","published":"2017-05-12"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"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 tricking users into opening a crafted document in Microsoft Office or WordPad.","url":"https://insights.sbomify.com/CVE-2017-0199/"}