CVE-2018-0802: Stack Buffer Overflow in Microsoft Office Equation Editor
- Vendor
- Microsoft Corporation
CVE-2018-0802 is a stack-based buffer overflow in Microsoft Office Equation Editor affecting Office 2007, 2010, 2013, and 2016. During parsing of an MTEF Font Record, function sub_421E39 uses strcpy without length validation to copy an attacker-supplied font name into the 32-byte lfFaceName field of a LOGFONT structure. The structure is allocated on the stack in sub_421774, allowing an oversized font name to overwrite the caller's return address. Crafted Office documents containing malicious equation objects can exploit this flaw to execute arbitrary code in the current user's context. An observed exploit used a partial return-address overwrite to redirect execution despite ASLR protection.
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 and command execution with the current user's permissions. Exploitation has supported delivery of backdoors, downloaders, and information-stealing malware, including PLEAD, Elise, and Agent Tesla. Subsequent payloads can provide remote control, credential theft, data exfiltration, and persistence; these capabilities depend on the deployed malware rather than the buffer overflow itself. The vulnerability is also associated with known ransomware campaign use.
Mitigation
If you can’t patch tonight, do this now.
Use virtual patching where immediate software updates are operationally infeasible. Detect and block malicious Office attachments at email gateways and endpoints, and train users to verify unexpected messages before opening attachments. Apply least privilege, application control, network segmentation, and behavioral monitoring to limit payload execution and subsequent compromise.
Remediation
Patch, then assume compromise.
Apply Microsoft's security updates addressing CVE-2018-0802 to affected Office installations. Verify deployment across endpoints and remediate systems left unpatched because of operational constraints.
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 Oct 16, 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. Verify deployment across endpoints and remediate systems left unpatched because of operational constraints.
- 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 Oct 16, 2026.
Recent activity
89 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.