Skip to content
RCE Advisory Intermediate CVE-2021-31945

Paint 3D Remote Code Execution Vulnerability (CVE-2021-31945)

A vulnerability in Paint 3D allowed an attacker to execute arbitrary code when a user opened a specially crafted file. The attacker could exploit this by sending the file via email or hosting it on a website and convincing the user to open it.

Li Qiao Follow

Originally disclosed on Microsoft

High 7.8 View original

FAQ

How do I get the updated app? The Microsoft Store will automatically update affected customers. Alternatively, customers can get the update immediately; see here for details. It is possible for customers to disable automatic updates for the Microsoft Store. The Microsoft Store will not automatically install this update for those customers. My system is in a disconnected environment; is it vulnerable? Customers using the Microsoft Store for Business and Microsoft Store for Education can get this update through their organizations. How can I check if the update is installed? App package versions 6.2105.4017.0 and later contain this update. You can check the package version in PowerShell: Get-AppxPackage -Name Microsoft.MSPaint

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation of the vulnerability requires that a user open a specially crafted file. In an email attack scenario, an attacker could exploit the vulnerability by sending the specially crafted file to the user and convincing the user to open the file. In a web-based attack scenario, an attacker could host a website (or leverage a compromised website that accepts or hosts user-provided content) containing a specially crafted file designed to exploit the vulnerability. An attacker would have no way to force users to visit the website. Instead, an attacker would have to convince users to click a link, typically by way of an enticement in an email or instant message, and then convince them to open the specially crafted file.

Paint 3D

Paint 3D

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Li Qiao of Baidu Security Lab. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 could execute arbitrary code on the victim's machine, but only if the user opens a malicious file.

What the attacker needed

Victim opens a malicious file; attacker convinces victim to open file

The fix

The vulnerability was fixed in Paint 3D app package version 6.2105.4017.0 and later, delivered via the Microsoft Store.

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.

This is a remote code execution bug in Microsoft Paint 3D. If you open a malicious file, the attacker can run their own code on your computer. The attacker has to trick you into opening the file, for example by sending it as an email attachment or linking to it on a website.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Li Qiao

View all

2 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.