Windows Host Compute Service Shim Remote Code Execution Vulnerability (CVE-2018-8115)
The Windows Host Compute Service Shim library did not properly validate input when importing a container image. An attacker could place malicious code in a crafted container image so that, if an authenticated administrator imported it, the library would execute that code on the Windows host.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists when the Windows Host Compute Service Shim (hcsshim) library fails to properly validate input while importing a container image. To exploit the vulnerability, an attacker would place malicious code in a specially crafted container image which, if an authenticated administrator imported (pulled), could cause a container management service utilizing the Host Compute Service Shim library to execute malicious code on the Windows host. An attacker who successfully exploited the vulnerability could execute arbitrary code on the host operating system. The security update addresses the vulnerability by correcting how Windows Host Compute Service Shim validates input from container images.
GitHub
GitHub
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 host operating system, but only if an authenticated administrator imported the crafted image.
What the attacker needed
Authenticated administrator; imports a crafted container image
The fix
The vulnerability was fixed by correcting how the library validates input from container images.
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.
A container image is a packaged set of files used to run software in an isolated box called a container. This library helps Windows manage those containers, but it did not check the image contents carefully enough. So a booby-trapped image could run harmful code on the main Windows machine instead of staying safely inside the container.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.