Paint 3D Remote Code Execution Vulnerability (CVE-2021-31946)
Paint 3D failed to handle a specially crafted file safely, so opening such a file could let an attacker run code on the victim's machine. The attacker has to persuade the user to open the file, either from an email attachment or from a website.
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
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 crafted file could run code with that user's privileges; the text does not say whether any mitigation limited the exploit.
What the attacker needed
Victim opens a crafted file; attacker convinces victim to click or open
The fix
It was fixed in app package versions 6.2105.4017.0 and later, delivered through 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.
Paint 3D is a drawing app that comes with Windows. A file it opens can carry hidden instructions that the app follows without checking them properly, so the file can make the app run the attacker's code on your computer. The catch for the attacker is that you have to open the file yourself, which is why they dress it up as something you want to click.
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.