HEVC Video Extensions Remote Code Execution Vulnerability (CVE-2022-22018)
A vulnerability in the HEVC Video Extensions app could allow an attacker to execute arbitrary code on a victim's machine if the victim opens a specially crafted file. The attack requires local interaction, such as downloading and opening a malicious file.
Dhanesh Kizhakkinan Follow with PeaceMaker
Originally disclosed on Microsoft
FAQ
According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. For example, when the score indicates that the Attack Vector is Local and User Interaction is Required , this could describe an exploit in which an attacker, through social engineering, convinces a victim to download and open a specially crafted file from a website which leads to a local attack on their computer.
FAQ
What is the difference between HEVC Video Extension and HEVC Video Extensions? HEVC Video Extension is available to consumers and HEVC Video Extensions is used by device OEMs.
FAQ
How can I check if the update is installed? If your device manufacturer preinstalled this app, package versions 2.0.51121.0 and later contain this update. If you purchased this app from the Microsoft Store, package versions 2.0.51122.0 and later contain this update. You can check the package version in PowerShell: Get-AppxPackage -Name Microsoft.HEVCVideoExtension*
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
Microsoft
Microsoft
Customer Action Required
Yes
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 corruption bug in the HEVC codec when parsing a crafted video file.
Impact
An attacker could execute arbitrary code on the victim's machine, but only if the victim opens a malicious file and has the optional HEVC codec installed.
What the attacker needed
Victim has HEVC codec installed; victim opens a crafted file
The fix
The vulnerability was fixed by updating the HEVC Video Extensions app to version 2.0.51121.0 or later (or 2.0.51122.0 for Store version).
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 video playback component for Windows. An attacker could trick someone into opening a malicious video file, and that file could run harmful code on the person's computer. The attacker needs the victim to open the file, so it's not something that happens automatically just by visiting a website.
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.