What Is Microsoft Office RTF Handling?
Rich Text Format (RTF) is a document format Microsoft Word has supported since the 1980s. RTF files encode document content using a tag-based text format that supports complex document features including embedded objects, styled text, tables, and images. Word's RTF parser is a large, complex subsystem with a long history of security vulnerabilities — RTF's complexity and legacy code paths make it a consistent source of memory corruption bugs.
Malicious RTF documents are a favored delivery mechanism for targeted attacks because RTF files can exploit Word's parser without requiring macros (which trigger security warnings) and are often trusted by email security gateways that whitelist .doc and .rtf file types.
Overview
CVE-2015-1641 is a memory corruption vulnerability in Microsoft Office (specifically Word's RTF parser) that allows remote code execution when a user opens a specially crafted RTF document. The vulnerability was exploited by multiple APT groups — including the Taidoor malware campaign associated with Chinese-nexus threat actors — in targeted spear-phishing attacks against government and enterprise targets. Patched in MS15-033 (April 14, 2015). Notably, CVE-2015-1641 was included in CISA's inaugural Known Exploited Vulnerabilities catalog in November 2021, reflecting its sustained use in targeted attacks.
Affected Versions
| Office Product | Status |
|---|---|
| Microsoft Word 2007 SP3 | Vulnerable |
| Microsoft Word 2010 SP2 | Vulnerable |
| Microsoft Word 2013 / 2013 RT | Vulnerable |
| Office for Mac 2011 | Vulnerable |
| Microsoft SharePoint Server 2010/2013 (Word Automation Services) | Vulnerable |
Systems patched with MS15-033 are not vulnerable.
Technical Details
Root Cause: RTF Parser Out-of-Bounds Write
CVE-2015-1641 involves an out-of-bounds write (CWE-787) in Microsoft Word's RTF parsing code. When Word processes a specially crafted RTF file, it mishandles specific RTF control words or property values in a way that writes data beyond the bounds of an allocated heap buffer.
The out-of-bounds write can corrupt adjacent heap metadata or object pointers. With precise heap manipulation (achievable through careful RTF structure), an attacker can overwrite a function pointer or vtable pointer in an adjacent Word object — redirecting execution to attacker-controlled code when that pointer is used.
Attack Delivery
The standard attack pattern:
- Spear-phishing email — attacker sends target a malicious RTF file via email (as
.doc,.rtf, or renamed extension) - Document opened — target opens the document in Microsoft Word
- RTF parser triggered — Word parses the malicious RTF structure
- Memory corruption — the out-of-bounds write corrupts heap memory
- Code execution — attacker-controlled code runs in the context of the Word process (typically the logged-in user)
Attack Characteristics
| Attribute | Detail |
|---|---|
| Attack Vector | Local — malicious RTF document opened by user |
| User Interaction | Required (open the document) |
| Delivery | Email attachment, web download |
| File Types | .rtf, .doc (RTF-format Word documents) |
| Impact | Code execution as current user |
Discovery
Reported to Microsoft and patched in MS15-033 (April 2015). Microsoft credited multiple security researchers. The vulnerability was observed being exploited in targeted attacks prior to the patch being available.
Exploitation Context
- Inaugural CISA KEV (November 2021): CVE-2015-1641 was included in the very first iteration of the CISA Known Exploited Vulnerabilities catalog in November 2021, alongside other high-priority historical CVEs — reflecting CISA's assessment that it was still being actively exploited 6+ years after the patch
- Taidoor APT campaign: The Taidoor malware family (attributed to Chinese-nexus threat actors) used CVE-2015-1641 in spear-phishing campaigns targeting Taiwanese government agencies and defense contractors; malicious RTF documents delivered the Taidoor RAT (Remote Access Trojan)
- Taiwan and East Asia targeting: Taidoor campaigns focused heavily on Taiwanese government, military, and defense industrial base targets, consistent with Chinese-nexus APT targeting patterns
- Long exploitation tail: Targeted APT groups reuse reliable exploits against unpatched targets for years after patches are available — particularly effective against organizations with poor patch management or older Office deployments
- CISA KEV (2021): Added November 2021
Remediation
-
Apply MS15-033 (April 2015) or maintain Office with current Microsoft Update. Any Office version updated after April 2015 includes this fix.
-
Enable Office Protected View — opens documents received from email or the internet in a sandboxed read-only mode that prevents exploitation of parser vulnerabilities. Protected View requires an additional user action to enable editing.
-
Disable RTF in Microsoft Word — via Group Policy or registry, Office can be configured to block RTF documents entirely. If RTF is not used organizationally, this eliminates the attack surface.
-
Deploy Microsoft Defender Attack Surface Reduction (ASR) rules — ASR rules can block Office applications from creating child processes, significantly reducing the impact of Office exploitation.
-
Email attachment filtering — configure email gateways to block or sandbox RTF and DOC attachments, requiring manual review before delivery.
-
Keep Office updated — Microsoft releases monthly security updates for Office; maintaining current patch levels eliminates this and similar vulnerabilities.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2015-1641 |
| Vendor / Product | Microsoft — Office |
| NVD Published | 2015-04-14 |
| NVD Last Modified | 2025-10-22 |
| CVSS 3.1 Score | 7.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-787 — Out-of-Bounds Write find similar ↗ |
| CISA KEV Added | 2021-11-03 |
| CISA KEV Deadline | 2022-05-03 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2015-04-14 | Microsoft Security Bulletin MS15-033 released; CVE-2015-1641 patched |
| 2015-04-14 | CVE-2015-1641 published by NVD |
| 2021-11-03 | Added to CISA Known Exploited Vulnerabilities catalog (inaugural KEV catalog) |
| 2022-05-03 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2015-1641 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Microsoft Security Bulletin MS15-033 — Vulnerabilities in Microsoft Office Could Allow Remote Code Execution | Vendor Advisory |