CVE-2018-0802: Microsoft Office Equation Editor Stack Buffer Overflow RCE
- Vendor
- Microsoft Corporation
CVE-2018-0802 is a stack-based buffer overflow in Microsoft Equation Editor affecting Microsoft Office 2007, 2010, 2013, and 2016. During parsing of a MathType Equation Format (MTEF) Font Record in an embedded equation object, an unchecked strcpy operation copies an attacker-controlled font name into the 32-byte lfFaceName field of a stack-allocated LOGFONT structure. An oversized font name can overwrite the calling function's return address and redirect execution to attacker-controlled code. Observed exploits used partial return-address overwrites to circumvent ASLR. Opening a specially crafted Office document can trigger arbitrary code execution in the current user's security context. The vulnerability is distinct from CVE-2017-11882, despite affecting the same legacy component.
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 compromises the affected endpoint with the privileges of the user opening the document. Attackers can execute commands, install malware, access or modify user-accessible data, and establish a foothold for further intrusion. Exploitation has delivered information stealers, downloaders, and espionage backdoors, including Agent Tesla, Elise, and PLEAD. The vulnerability is actively exploited and has known ransomware campaign use. Administrative access and lateral movement are possible follow-on outcomes but are not inherently granted by the vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Block or disarm untrusted embedded OLE objects and inspect or quarantine exploit-bearing Office and RTF attachments. Restrict Office child-process creation and unnecessary outbound connections, and use endpoint protection and behavioral monitoring to detect exploitation and payload execution. Apply least privilege, application control, and network segmentation to limit post-exploitation impact. Where immediate patching is impractical, use virtual patching and prevent vulnerable systems from processing untrusted documents.
Remediation
Patch, then assume compromise.
Apply Microsoft's security updates addressing CVE-2018-0802 to affected Office installations and verify deployment across endpoints, including legacy systems. An installation patched only for CVE-2017-11882 should not be considered protected against this vulnerability. Replace unsupported Office installations with supported, fully updated versions. If exploitation is suspected, isolate the endpoint and investigate for installed payloads, persistence, credential theft, and subsequent attacker activity; patching alone does not remove an existing compromise.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
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.
References
Frequently asked questions
- Is CVE-2018-0802 exploited in the wild?
- Yes. As of Nov 25, 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-2018-0802?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2018-0802, the earliest disclosed Jan 11, 2018.
- Is there a patch for CVE-2018-0802?
- Apply Microsoft's security updates addressing CVE-2018-0802 to affected Office installations and verify deployment across endpoints, including legacy systems. An installation patched only for CVE-2017-11882 should not be considered protected against this vulnerability.
- What products are affected by CVE-2018-0802?
- Microsoft Corporation Microsoft Office, Microsoft Corporation Office Compatibility Pack, and Microsoft Corporation Word.
- How severe is CVE-2018-0802?
- CVE-2018-0802 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 93.3% (100th percentile) as of Nov 25, 2026.
Recent activity
90 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.