Cve 2025 59050 Exploiting Wm Copydata In Greenshot For Local Code Execution
Greenshot deserialises data received through the legacy WM_COPYDATA Windows message without validating or sanitising it. A local process could send a crafted message to run code in Greenshot's context, which is often elevated.
CVE-2025–59050 is a high-severity local privilege escalation vulnerability affecting Greenshot ≤1.3.300 on Windows. It arises from insecure deserialization of data passed via the WMCOPYDATA Windows message, which is a legacy IPC mechanism used to transfer data between processes.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application deserialises untrusted data from a WM_COPYDATA message without validating or sanitising it first.
Impact
A local attacker could execute code in the context of Greenshot, which is often elevated, without user interaction, though the text only claims a proof of concept was demonstrated.
What the attacker needed
Local access to the Windows host; Greenshot running; ability to send a WM_COPYDATA message
The fix
Greenshot 1.3.301 was released with input validation for WM_COPYDATA and safer deserialisation routines.
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 write-up has not been written yet. The Original tab links to the source.
Greenshot is a screenshot tool. Windows programs can pass messages to each other, and one message type carries a block of data. Greenshot turns that data back into program objects without checking it first, so a malicious program on the same machine can slip in data that makes Greenshot run the attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.