Microsoft Windows Codecs Library Remote Code Execution Vulnerability (CVE-2020-1574)
The Windows Codecs Library mishandled objects in memory when processing image files, so a crafted image could trigger arbitrary code execution. The update corrects how the library handles those objects in memory.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists in the way that Microsoft Windows Codecs Library handles objects in memory. An attacker who successfully exploited the vulnerability could execute arbitrary code. Exploitation of the vulnerability requires that a program process a specially crafted image file. The update addresses the vulnerability by correcting how Microsoft Windows Codecs Library handles objects in memory.
FAQ
Is Windows vulnerable in the default configuration? Yes. WebP or "WebP from Device Manufacturer" media codecs are installed by default in the operating system. Updates are available from the Microsoft Store. How do I get the updated Windows Media Codec? Affected customers will be automatically updated by Microsoft Store. Customers do not need to take any action to receive the update. Alternatively, customers who want to receive the update immediately can check for updates with the Microsoft Store App; more information on this process can be found here . Why are these security updates offered to affected clients via the Microsoft Store and not Windows Update? These updates are for optional apps/components that are offered to customers as a download via the Microsoft Store. Updates for optional store apps/components are provided via the Microsoft Store. My server is in a disconnected environment, is it vulnerable? WebP is not available for offline distribution and not supported on Windows Server. Users should not have it installed in these environments. Enterprise customers using Store for Business will receive the update in the same manner as consumer Store. Why are these updates being offered outside of Update Tuesday? Servicing for store apps/components does not follow the monthly “Update Tuesday” cadence, but are offered whenever necessary. Are these updates for Microsoft store apps/components offered automatically when an affected component is on the system? Yes. However, it is possible to turn off automatic updating for store apps. In that scenario, these updates would not be installed automatically. How can I check from PowerShell if the update is installed? The following command will display the version of the installed package: Get-AppxPackage -Name Microsoft.WebPImageExtension*
FAQ
How does a user know if the update has been installed? You can check the version of the installed package. For example, click on Settings, Apps & Features and select WebP, Advanced Options. You will see the version there. The secure versions are 1.0.31251.0 and later.
Microsoft Windows Codecs Library
Microsoft Windows Codecs Library
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
Root cause
Likely a memory-safety flaw in how the Windows Codecs Library handles objects while decoding image files.
Impact
An attacker who gets a victim to process a specially crafted image could execute arbitrary code; the text does not say whether any mitigation limits this.
What the attacker needed
A program processes a crafted image; WebP codec installed (default)
The fix
It was fixed by an update that corrects how the library handles objects in memory, delivered automatically 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.
Image files are opened by a piece of software called a codec, which turns the file's data into a picture on screen. Here the codec made a mistake while handling data in memory, so a booby-trapped image could make the computer run the attacker's code. The fix is a normal update delivered through the Microsoft Store.
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.