Skip to content
Memory corruption Advisory Advanced CVE-2020-17022

Microsoft Windows Codecs Library Remote Code Execution Vulnerability (CVE-2020-17022)

A remote code execution vulnerability exists in the way Microsoft Windows Codecs Library handles objects in memory. An attacker who successfully exploited the vulnerability could execute arbitrary code by having a program process a specially crafted image file.

Dhanesh Kizhakkinan Follow

Originally disclosed on Microsoft

High 7.8 View original

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

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 HEVC, Advanced Options . You will see the version there. The secure versions are 1.0.32762.0, 1.0.32763.0, and later.

FAQ

Is Windows vulnerable in the default configuration? No. Only customers who have installed the optional HEVC or "HEVC from Device Manufacturer" media codecs from Microsoft Store may be vulnerable. 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? HEVC 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.HEVCVideoExtension*

Microsoft Windows Codecs Library

Microsoft Windows Codecs Library

Issuing CNA

Microsoft

The original report as published on the Microsoft Security Response Center, by Dhanesh Kizhakkinan of FireEye Inc. 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

Root cause

Likely a memory handling error in the Windows Codecs Library when processing specially crafted image files.

Impact

An attacker could execute arbitrary code on a vulnerable system, but only if the optional HEVC codec is installed.

What the attacker needed

Optional HEVC codec installed

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 security flaw in a Windows component that processes image files. If a program opens a maliciously crafted image, an attacker could run their own code on the computer. The flaw only affects systems that have an optional video codec installed.

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.

More by Dhanesh Kizhakkinan

View all

10 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.