Skip to main content
Mallory
CriticalPublic exploit

Microsoft Word RTF Heap Corruption Remote Code Execution

IdentifiersCVE-2023-21716CWE-122

CVE-2023-21716 is a Microsoft Word remote code execution vulnerability. The provided content identifies it as a high-severity Word flaw and explicitly associates it with 'Word RTF Heap Corruption.' The vulnerability can be triggered by a malicious Word document and, notably, the content states exploitation can occur even when the document is only viewed through Microsoft Outlook's preview pane. This indicates a memory-corruption condition in Word's handling of crafted RTF content that can be reached during document parsing/rendering without the victim fully opening the file.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation can result in remote code execution in the context of the affected user. The supporting content further notes that exploitation of Office vulnerabilities of this class may lead to arbitrary code execution, system compromise, data exfiltration, and lateral movement. Because the issue can be triggered via Outlook preview pane rendering, the attack surface includes passive document preview scenarios, increasing the likelihood of initial compromise through phishing workflows.

Mitigation

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

Until patching is fully deployed, reduce exposure by blocking or quarantining untrusted Word/RTF attachments, limiting delivery of spearphishing attachments, and disabling or restricting Outlook preview of untrusted documents where operationally feasible. Monitor for Office applications spawning uncommon child processes or dropping uncommon files, as the provided content links such behaviors to CVE-2023-21716-related detection opportunities.

Remediation

Patch, then assume compromise.

Apply Microsoft's February 2023 security updates that address CVE-2023-21716. The content states Microsoft patched this vulnerability during the February 2023 Patch Tuesday release. Organizations should prioritize patching affected Microsoft Word and Office installations, especially on systems used to process email attachments in Outlook.
PUBLIC EXPLOITS

Exploits

4 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).

VALID 4 / 6 TOTALView more in app
CVE-2023-21716MaturityPoCVerified exploit

This repository is a minimal single-file Python proof-of-concept for CVE-2023-21716. The only file, exploit.py, generates a malicious RTF document named malicious.rtf. The script builds a basic RTF header, appends a very large number of font table entries with font IDs ranging from 0 to 32760, and finishes with a small footer before writing the result to disk. There is no networking, command execution, shell payload, or post-exploitation logic. The exploit capability is limited to file generation: it produces a crafted document intended to trigger a vulnerability in a target RTF parser, likely Microsoft Word/Office on Windows, when the file is opened. The repository structure is extremely simple and purpose-built as a crash/trigger POC rather than a weaponized exploit.

muumthfDisclosed Mar 22, 2026pythonlocal file
CVE-2023-21716-POCMaturityPoCVerified exploit

This repository provides a proof-of-concept (PoC) exploit for CVE-2023-21716, a critical heap buffer overflow vulnerability in Microsoft Word's handling of RTF files with oversized font tables. The repository contains two files: a detailed README.md explaining the vulnerability, affected products, and exploitation steps, and a Python script (RTF-creator.py) that generates a malicious RTF file ('malicious.rtf') with 32,761 font entries. Opening or previewing this file in a vulnerable version of Microsoft Word or Outlook triggers a crash due to heap corruption, as demonstrated by the included WinDbg analysis. The exploit is a PoC and does not include a remote code execution payload, but it effectively demonstrates the vulnerability by causing a crash. The main attack vector is via malicious file delivery (e.g., email attachment). No network endpoints or registry keys are involved; the only fingerprintable endpoint is the generated 'malicious.rtf' file.

RonF98Disclosed Sep 16, 2024pythonfileemail
CVE-2023-21716MaturityPoCVerified exploit

This repository provides a proof-of-concept (POC) exploit for CVE-2023-21716, a heap corruption vulnerability in Microsoft Word's RTF parser. The main exploit is implemented in 'POC-CVE-2023-21716.py', which generates a malicious RTF file ('POC-CVE-2023-21716.rtf') containing an oversized font table. When this file is opened in a vulnerable version of Microsoft Word (Office 365, 2016, 2013, 2010, or 2007), it can trigger heap corruption and potentially allow remote code execution with the victim's privileges. The repository also includes two YARA rules ('CVE-2023-21716.yar') for detecting RTF files crafted to exploit this vulnerability, and a brief README. The exploit is a POC and does not include a weaponized payload, but demonstrates the vulnerability's trigger condition. The main attack vector is via malicious document delivery (e.g., email attachment), and the primary fingerprintable endpoint is the generated RTF file.

JMousquetonDisclosed Apr 16, 2023pythonyaralocalnetwork
CVE-2023-21716MaturityPoCVerified exploit

This repository is a proof-of-concept (POC) exploit for CVE-2023-21716, which targets a vulnerability in the RTF parser on Windows 10 systems. The repository contains three files: a LICENSE, a README.md, and the main exploit script (exploit.py). The exploit.py script generates a specially crafted RTF file ('exploit.rtf') with an extremely large font table (32,761 entries), which is designed to crash the RTF parser (such as Microsoft Word) when opened. This demonstrates a denial-of-service condition. The exploit is written in Python and is intended to be run on a system with Python 3.11. There are no network endpoints or remote attack vectors; the attack is local and requires the target to open the generated file. The repository is structured simply, with the exploit logic contained entirely in a single Python script.

Xnuvers007Disclosed Mar 7, 2023pythonlocal
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 Corporation365 Appsapplication
Microsoft CorporationOfficeapplication
Microsoft CorporationOffice Long Term Servicing Channelapplication
Microsoft CorporationOffice Online Serverapplication
Microsoft CorporationOffice Web Appsapplication
Microsoft CorporationOffice Web Apps Serverapplication
Microsoft CorporationSharepoint Enterprise Serverapplication
Microsoft CorporationSharepoint Foundationapplication
Microsoft CorporationSharepoint Serverapplication
Microsoft CorporationWordapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware13

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.