Skip to content
RCE Advisory Advanced CVE-2018-8115

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.

Michael Hanselmann Follow

Originally disclosed on Microsoft

Critical View original

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

The original report as published on the Microsoft Security Response Center, by Michael Hanselmann. 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

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.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.