Microsoft Office Remote Code Execution Vulnerability (CVE-2025-59227)
A use-after-free flaw exists in Microsoft Office, which an attacker can trigger by sending a crafted Office file and convincing the victim to open it. Successful exploitation lets the attacker run arbitrary code on the victim's machine, and the Preview Pane can also trigger it.
cdbb6164ddfda2b210fd348442322115 Follow
Originally disclosed on Microsoft
Description
Use after free in Microsoft Office allows an unauthorized attacker to execute code locally.
FAQ
According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.
FAQ
According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? An attacker must send a user a malicious Office file and convince them to open it.
FAQ
Is the Preview Pane an attack vector for this vulnerability? Yes, the Preview Pane is an attack vector.
Microsoft Office
Microsoft Office
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker who convinces a user to open a malicious Office file could execute arbitrary code on that machine; the Preview Pane is also an attack vector.
What the attacker needed
Victim opens a malicious Office file; attacker can deliver the file to the victim
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A use-after-free is a memory bug where a program keeps using a chunk of memory after it has been freed, so an attacker can plant their own data there. Here, opening a specially crafted Office document can make Office misuse that memory and run the attacker's code on your computer. The attacker has to get you to open the file, but simply previewing it may be enough.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.