← All notes

CVE-2025-21363 — remote code execution in Microsoft Word

Opening a crafted document was enough to run code with the privileges of the Word process. Here is the PoC recorded at the time of the report, with the environment it was reproduced in.

Related CVEs

Summary

Target Microsoft Word (winword.exe)
Type Untrusted pointer dereference (CWE-822)
Impact Remote code execution (CVSS 7.8, High)
Patch Microsoft security update, January 2025 (2025-01-14)
Tested on Windows 10 x64 1909 · Office Professional Plus 2019 (Word 2403, build 17425.20176)

Description

Microsoft classified this as an untrusted pointer dereference (CWE-822). When a value read out of a document is used as a pointer without enough validation, whoever wrote the document gets to decide what that pointer refers to. Simply opening a crafted document can carry that through to code running with the privileges of the Word process, so Microsoft rated it remote code execution and patched it in January 2025.

It was reported alongside CVE-2025-21298, patched the same day; the two together placed 6th on the MSRC Security Researcher leaderboard for the quarter.

PoC

The recording is the one made at the time of the report, and it runs as follows.

  1. Windows Security shows the protection state and the mitigation settings for winword.exe.
  2. The crafted document is opened in Word.
  3. Word exits the moment the document is opened, and the code carried in the document runs — the calculator comes up.
PoC demo — Windows 10 x64, Office Professional Plus 2019. The document opens, Word exits and the calculator runs.

Impact

Nothing is asked of the user beyond opening the document, and the code that runs holds whatever privileges the user running Word has. That it can arrive by an ordinary route — a mail attachment, a downloaded file — is part of why Microsoft rated it CVSS 7.8 (High).

The recording was made with some mitigations overridden for research purposes. On a machine left at its defaults, further work would be needed to get past them.

References