NEW No-Click Critical Vulnerability in Microsoft Windows: CVE-2025-21298

Tr0jan_Horse

Moderator
Staff member
MODERATOR
ULTIMATE
PREMIUM
MEMBER
Joined
Oct 23, 2024
Messages
304
Reaction score
8,799
Deposit
0$
6a4a49_29a68aa1e8974a7da367f7238682d7a0mv2-1-1.jpg



Welcome back, my aspiring cyberwarriors!

Over the years, Microsoft Windows operating system, the world’s most widely used OS, has been riddled with security vulnerabilities. As the years have gone by and Microsoft has become more security conscience, the number of critical vulnerabilities has waned, but every so often we find another that make the entire world insecure. This is one of those times.

During a recent Patch Tuesday release, Microsoft delivered a critical fix addressing a high-risk vulnerability identified as CVE-2025-21298. This security flaw, which carries a near-maximum CVSS severity rating of 9.8, could let attackers remotely execute malicious code on Windows systems simply by sending a specially designed file. The issue directly impacts Microsoft Word and Outlook. Let’s explore how this vulnerability occurs.

Understanding the Attack Surface


The vulnerability resides in ole32.dll’s UtOlePresStmToContentsStm function, which processes OLE objects embedded in emails/files. When Outlook or Word renders these objects, it invokes this function to handle data conversion between storage streams. This creates an ideal attack vector since email clients and word processors automatically process these objects during preview, requiring no user interaction.

To understand why this is particularly dangerous, imagine opening your email inbox. The preview pane automatically loads emails, and if a malicious email contains a specially crafted OLE object, the vulnerability triggers before you even click on the message.

Technical Details


The process begins when, for example, Outlook starts processing an embedded OLE object in an email. This happens automatically when the email preview pane renders the content. The embedded object triggers ole32.dll to handle the content conversion.

6a4a49_29a68aa1e8974a7da367f7238682d7a0~mv2.png


Next, ole32.dll creates a new CONTENTS stream in memory through the heap manager. This allocation is performed following standard COM object patterns, which makes the memory location relatively predictable.

The first free operation occurs as part of normal processing, where ole32.dll releases the CONTENTS stream. However, crucially, the pointer to this freed memory isn’t nullified. This creates what we call a vulnerability window – a period where we have a dangling pointer to freed memory.

During this vulnerability window, if we can trigger a failure in UtReadOlePresStmHeader, the cleanup routine will attempt to free the same memory location again. This second free operation corrupts the heap memory management structures.

Once the heap is corrupted, the system’s memory management is compromised, allowing an attacker to potentially take control of the process. Since this occurs in the context of Outlook, which often runs with elevated privileges, the impact is particularly severe.

Exploitation


For this guide, we’ll use an RTF file that triggers memory corruption by ynwarcs.

The PoC is available at: https://github.com/ynwarcs/CVE-2025-21298/blob/main/poc/cve-2025-21298-poc.rtf
 
Top Bottom