Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2017-11882: Remote Code Execution in Microsoft Office Equation Editor

Published Nov 15, 2017 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days8 mentions · peak 6 in a dayToday
CVSS7.8High · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2017-11882CWE-121

CVE-2017-11882 is a stack-based buffer overflow in the legacy Microsoft Equation Editor component of Microsoft Office. Improper bounds checking during equation font-name processing allows a crafted embedded equation object to corrupt stack memory and execute arbitrary code with the privileges of the user opening the document. Affected products include Microsoft Office 2007 SP3, Office 2010 SP2, Office 2013 SP1, and Office 2016, including affected 32-bit and 64-bit editions. Exploits commonly use malicious RTF documents, either delivered directly or loaded through another Office document using remote templates or Word's altChunk feature. Microsoft released a security update in November 2017. This vulnerability is distinct from CVE-2017-11884.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary code execution in the current user's security context, compromising data and functionality accessible to that account. Exploitation under an administrator account can enable full system control, including installing programs, modifying or deleting data, and creating accounts. Observed campaigns have used the vulnerability to deploy information stealers and remote-access malware, including Agent Tesla, FormBook, Remcos, XLoader, and PortDoor. Persistence, credential theft, and surveillance are capabilities of subsequent payloads rather than intrinsic effects of the vulnerability.

Mitigation

If you can’t patch tonight, do this now.

Until remediation is complete, disable the legacy Microsoft Equation Editor COM component using Microsoft's documented registry-based workaround. EMET or Windows Defender Exploit Guard protections for Equation Editor, or system-wide ASLR, can impede known exploitation techniques but should not replace patching. Use non-administrative accounts for document handling, block exploit-bearing attachments with email and endpoint security controls, and verify unexpected documents with senders through known communication channels. Monitor Office document activity followed by unusual script-interpreter execution.

Remediation

Patch, then assume compromise.

Apply Microsoft's security updates addressing CVE-2017-11882 to every affected Office installation. Microsoft initially released the fix in November 2017. Verify that the installed Office version and architecture have received the applicable update; where necessary, upgrade to a supported, patched Office release.

Public exploits

Exploits

12 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
office_ms17_11882.rbThis repository contains a single Metasploit module (office_ms17_11882.rb) that exploits CVE-2017-11882, a critical vulnerability in Microsoft Office's Equation Editor (EQNEDT32.EXE). The exploit works by generating a malicious RTF file containing a specially crafted OLE object that triggers the vulnerability when opened in a vulnerable version of Microsoft Office on Windows. The module allows the attacker to specify the output filename and optionally inject the exploit into an existing RTF file. Upon successful exploitation, arbitrary code is executed on the target, typically resulting in a reverse shell or Meterpreter session using a customizable payload (default: windows/meterpreter/reverse_tcp, delivered via PowerShell). The module leverages Metasploit's file format, HTTP server, and PowerShell capabilities to deliver and execute the payload. No hardcoded network endpoints are present; the attack is delivered via the malicious file. The code is weaponized, allowing for easy payload customization and integration into attack workflows.Disclosed Nov 15, 2017 · Framework: metasploit · ruby · fileformatWeaponizedCVE-2017-11882-metasploitThis repository contains a Metasploit module (cve_2017_11882.rb) that exploits CVE-2017-11882, a remote code execution vulnerability in Microsoft Office Word's Equation Editor. The exploit works by generating a malicious RTF file (using a template, cve-2017-11882.rtf) that, when opened by a vulnerable version of Word, triggers code execution via mshta.exe. The module sets up an HTTP server to deliver an HTA file containing the attacker's payload. The payload is customizable and can be any Metasploit-supported Windows payload (e.g., reverse shell, Meterpreter). The README provides installation instructions for integrating the module and template into a Metasploit environment. The main attack vectors are file format (malicious RTF) and network (HTTP delivery of the HTA payload). The endpoints include the file paths for the module and template, as well as the HTTP URL used to deliver the payload. The exploit is weaponized, as it is fully integrated into Metasploit and supports arbitrary payloads.0x09AL · Disclosed Nov 21, 2017 · Framework: metasploit · ruby · fileformat · networkWeaponizedCVE-2017-11882This repository provides two Python scripts (Command109b_CVE-2017-11882.py and Command43b_CVE-2017-11882.py) that generate malicious RTF files exploiting CVE-2017-11882, a critical vulnerability in Microsoft Office's Equation Editor. The scripts allow the user to specify an arbitrary command (up to 109 or 43 bytes, depending on the script) to be executed on the victim's system when the RTF is opened. The payload is embedded in the RTF as a specially crafted OLE object. The repository includes a sample exploit RTF (example/exploit.rtf) and a README with usage instructions and references. The exploit is operational, allowing for arbitrary command execution, and can be used to launch local executables or fetch and execute remote scripts (e.g., via mshta or regsvr32). No hardcoded network endpoints are present, but the exploit can be configured to fetch remote payloads by specifying a URL in the command argument.Ridter · Disclosed Nov 21, 2017 · python · fileOperationalCVE-2017-11882This repository provides a working exploit for CVE-2017-11882, a critical vulnerability in Microsoft Office's Equation Editor (EQNEDT32.EXE). The main exploit script, 'CVE-2017-11882.py', is a Python program that generates a malicious RTF file. This RTF file, when opened in a vulnerable version of Microsoft Word, triggers the vulnerability and allows arbitrary code execution. The exploit supports two main modes: (1) executing a user-supplied command on the target system (using WinExec), and (2) injecting and executing arbitrary shellcode (such as a reverse shell) in a new process (EQNEDT32.EXE), which can be specified with the '-i' flag. The maximum payload size is approximately 17,967 bytes. The script automatically selects the appropriate RTF template based on payload size. The repository includes: - 'CVE-2017-11882.py': The main exploit generator script. - 'shellcode.c': Example C code for custom shellcode injection, useful for advanced payloads. - 'README.md': Detailed usage instructions, including example commands for generating payloads (e.g., with msfvenom) and for debugging the exploit. - 'LICENSE': MIT license. A notable fingerprintable endpoint is the Windows registry key for EQNEDT32.EXE, referenced for debugging purposes. The exploit is operational and can be used to generate weaponized RTF files for red teaming or penetration testing against unpatched Microsoft Office installations.rip1s · Disclosed Nov 21, 2017 · python · c · fileOperationalCVE-2017-11882This repository provides a working exploit for CVE-2017-11882, a critical remote code execution vulnerability in Microsoft Office's Equation Editor. The main exploit is implemented in 'Command_CVE-2017-11882.py', a Python script that generates a malicious RTF file embedding a specially crafted OLE object. When a vulnerable version of Microsoft Office opens this RTF, it triggers arbitrary command execution on the victim's system. The script allows the attacker to specify any command to be executed, and outputs the exploit RTF file. The repository also includes 'PS_shell.rb', a Metasploit module that sets up an HTTP server to deliver a PowerShell-based HTA payload. This module provides a DDE (Dynamic Data Exchange) command for use in Office documents, which, when executed, causes the victim's system to fetch and run a payload from the attacker's server using mshta.exe. The module is designed for integration with the Metasploit framework and can deliver customizable payloads. An example malicious RTF file is provided in 'example/exploit.rtf', and a brief README points to a Chinese-language blog post explaining the vulnerability. The overall structure is typical for a proof-of-concept exploit repository, with both standalone and framework-based exploitation options. The main attack vectors are malicious file delivery (RTF) and network-based payload retrieval (HTTP/HTA).starnightcyber · Disclosed Nov 22, 2017 · Framework: metasploit · python · ruby · file · networkOperationalCVE-2017-11882This repository provides multiple proof-of-concept and operational exploits for CVE-2017-11882, a critical remote code execution vulnerability in the Microsoft Office Equation Editor (EQNEDT32.EXE). The exploit targets Office versions 2003 through 2016 on Windows. The repository includes three Python scripts that generate malicious RTF files embedding a payload to execute arbitrary commands on the victim's system when the file is opened in a vulnerable Office installation. The payload can be customized, for example to launch calc.exe or to execute mshta to fetch and run a remote payload (e.g., from http://192.168.43.165:8080/11882). The repository also contains a Metasploit module (cve_2017_11882.rb) that automates the generation and delivery of the exploit, supporting integration with Metasploit's payloads such as Meterpreter reverse shells. The attack vector is primarily via malicious document files delivered to the victim, with optional network callbacks for payload delivery. The code is operational and can be used to generate weaponized documents for red teaming or penetration testing. The README provides detailed usage instructions and highlights the affected Office versions, as well as mitigation steps.littlebin404 · Disclosed Aug 14, 2019 · Framework: metasploit · python · ruby · file · networkOperationalSignHereThis repository provides an operational exploit tool for CVE-2017-11882, a memory corruption vulnerability in Microsoft Office's Equation Editor. The main script, SignHere.py, generates malicious RTF documents that exploit this vulnerability to execute arbitrary code when opened in a vulnerable version of Microsoft Office (2007 SP3, 2010 SP2, 2013 SP1, or 2016). The tool allows the attacker to specify a Windows command, a PowerShell command, or a binary payload to be executed on the victim's machine. It can also generate a VBScript-based HTA payload (pay.hta) for use with mshta.exe, and includes a simple HTTP server to host payloads and a TCP listener for reverse shell connections. The exploit is highly customizable, supporting both direct command execution and file download/execution scenarios. The codebase is organized into a main script and supporting libraries for payload generation, RTF exploit crafting, server hosting, and listener functionality. The attack vector is primarily through malicious file delivery (RTF), with network-based payload retrieval and optional reverse shell capabilities.Retr0-code · Disclosed Jan 25, 2021 · python · file · networkOperationalcve-2017-11882This repository contains a proof-of-concept exploit for CVE-2017-11882, a well-known vulnerability in Microsoft Office's Equation Editor. The repository consists of two files: a minimal README and a large RTF file ('cve-2017-11882.rtf'). The RTF file is crafted to exploit the vulnerability when opened in a vulnerable version of Microsoft Office on Windows. The exploit leverages a specially crafted document to trigger arbitrary code execution, typically by embedding shellcode or a command execution payload within the RTF structure. There is no source code or script provided; the main exploit is the binary RTF file itself. No network endpoints, IP addresses, or URLs are present in the repository. The exploit is operational as a document-based attack and requires user interaction (opening the file) to trigger the vulnerability.zhouat · Disclosed Nov 19, 2017 · rtf · documentPoCCVE-2017-11882This repository provides a proof-of-concept exploit for CVE-2017-11882, a vulnerability in Microsoft Office's Equation Editor. The main exploit is implemented in 'webdav_exec_CVE-2017-11882.py', a Python script that generates a malicious RTF file containing OLE objects. When the generated RTF file is opened on a vulnerable Windows system, it triggers the WebClient service and executes an attacker-controlled executable from a remote WebDAV share (specified as a UNC path, e.g., \\attacker_ip\ff\1.exe). The repository includes a sample exploit RTF file in the 'example' directory and a README with usage instructions and background information. The exploit demonstrates arbitrary code execution via a crafted document, leveraging both file-based (malicious RTF) and network-based (WebDAV/UNC path) attack vectors. The code is a functional PoC and does not include advanced payload customization or evasion features.embedi · Disclosed Nov 20, 2017 · python · file · networkPoC2017-11882_GeneratorThis repository provides a Python proof-of-concept exploit for CVE-2017-11882, a critical remote code execution vulnerability in Microsoft Office's Equation Editor. The main file, '2017-11882_Generator.py', generates a malicious RTF document that embeds a user-specified system command. When a vulnerable version of Microsoft Office opens the generated RTF, the embedded command is executed in the context of the current user. The exploit leverages a crafted OLE object within the RTF to trigger the vulnerability. The README provides usage instructions, mitigation steps (including relevant registry keys to disable the vulnerable COM object), and a link to the official Microsoft patch. The repository is structured simply, with one Python exploit generator and a README. No network endpoints are hardcoded; the attack vector is via a malicious file. The exploit is a POC and does not include advanced payloads or evasion techniques.BlackMathIT · Disclosed Nov 21, 2017 · python · filePoCRTF_11882_0802This repository contains a Python proof-of-concept exploit for the Microsoft Office Equation Editor vulnerabilities CVE-2017-11882 and CVE-2018-0802. The main file, RTF_11882_0802.py, is a command-line tool that generates a malicious RTF file. The user specifies a command to execute on the target system and the output file name for the crafted RTF. Optionally, a template RTF can be provided. The exploit works by embedding a specially crafted OLE object into the RTF, which triggers the vulnerability in the Equation Editor component when the file is opened in a vulnerable version of Microsoft Office on Windows. The exploit does not contain any hardcoded payload; instead, it allows the user to specify any command, making it a flexible proof-of-concept. The repository also includes a README with usage instructions and references to research and advisories. No network endpoints or external IPs/domains are present; the attack vector is via a malicious file delivered to the victim.Ridter · Disclosed Jan 12, 2018 · python · filePoCCVE-2017-11882This repository provides a proof-of-concept (PoC) exploit for CVE-2017-11882, a well-known vulnerability in Microsoft Office's Equation Editor. The repository contains two Python scripts, 'poc.py' and 'poc3.py', both of which generate a malicious RTF file that exploits the vulnerability. The user supplies a command to execute (-c) and an output file name (-o); the script embeds the command into a specially crafted OLE object within the RTF. When a vulnerable version of Microsoft Office opens the RTF, the embedded command is executed on the victim's system. The scripts differ slightly in implementation (e.g., use of 'binascii' in 'poc3.py'), but both serve the same purpose. No network endpoints or hardcoded IPs/domains are present; the exploit is delivered via a file. The repository is a clear, functional PoC and does not include weaponized or framework-based code.imkidz0 · Disclosed Aug 13, 2025 · python · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationMicrosoft Officeapplication
FAQ

Frequently asked questions

Is CVE-2017-11882 exploited in the wild?
Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2017-11882?
Yes. Mallory tracks 12 public exploits or proofs of concept for CVE-2017-11882, the earliest disclosed Nov 15, 2017.
Is there a patch for CVE-2017-11882?
Apply Microsoft's security updates addressing CVE-2017-11882 to every affected Office installation. Microsoft initially released the fix in November 2017.
What products are affected by CVE-2017-11882?
Microsoft Corporation Microsoft Office.
How severe is CVE-2017-11882?
CVE-2017-11882 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 99.9% (100th percentile) as of Nov 17, 2026.
Activity feed

Recent activity

285 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
cyber security newsNews · Nov 13, 2026Hackers Use Fake Purchase Order Emails to Deliver XLoader Malware Through Malicious Word DocumentsA Microsoft Equation Editor code-execution vulnerability exploited in purchase-order phishing documents to launch a multistage infection chain delivering XLoader version 8.9. Subsequent script stages establish registry-based logon persistence and decrypt and execute the malware in memory. XLoader steals computer information and browser data and can download additional malware.Read more ↗cryptika blogNews · Nov 13, 2026Hackers Use Fake Purchase Order Emails to Deliver XLoader Malware Through Malicious Word Documents | Cryptika CybersecurityA Microsoft Equation Editor code-execution vulnerability exploited in fake purchase-order Word attachments to deliver XLoader 8.9. An embedded OLE package drops a VBS file, and a separate Equation Editor object exploits the flaw to execute it through Windows Script Host. Subsequent PowerShell stages establish registry-based logon persistence and load the decrypted information-stealing payload into memory.Read more ↗detections digest rulecheckNews · Nov 2, 2026Detections Digest #20261102 - by RuleCheckAn Equation Editor vulnerability exploited through malicious Office and RTF documents to execute code. Updated YARA signatures inspect font-name buffer overflow trigger sequences, OLE structures, and embedded process-launch commands.Read more ↗bank info securityNews · Oct 8, 2026Chinese Hackers Targeted G7 Summit Through MS Office FlawA Microsoft Office memory corruption vulnerability that allows arbitrary code execution when a user opens a specially crafted file in an affected version of Microsoft Office or WordPad. Suspected Chinese APT groups exploited it through malicious RTF attachments targeting government officials attending the May 2023 G7 summit. Successful exploitation deployed unnamed information-stealing malware; attackers could gain control of the system if the victim had administrative privileges.Read more ↗
+146 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence123Every report linking this CVE to a named adversary.
Associated malware235Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity43Community discussion across Reddit, Mastodon, and other social sources.