Skip to content
Memory corruption Advisory Advanced CVE-2023-36718

Microsoft Virtual Trusted Platform Module Remote Code Execution Vulnerability (CVE-2023-36718)

A vulnerability existed in the Windows Virtual Trusted Platform Module that could allow an attacker with guest-level access to escape the virtual machine's contained execution environment. Exploitation required complex memory shaping techniques and code execution from the local machine, as the vulnerable endpoint was only reachable over the local VM interface.

HongZhenhao Follow

Originally disclosed on Microsoft

Critical 7.8 View original

FAQ

According to the CVSS Metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability would rely upon complex memory shaping techniques to attempt an attack.

FAQ

According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability? This vulnerability could lead to a contained execution environment escape. Please refer to AppContainer Isolation for more information.

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. The vulnerable endpoint is only available over the local VM interface as all external communication is blocked. This means an attacker needs to execute code from the local machine to exploit the vulnerability.

FAQ

According to the CVSS metric, privileges required is low (PR:L). Does the attacker need to be in an authenticated role on the Virtual Trusted Platform Module? Yes, the attacker must be authenticated as a guest mode user to escape the virtual machine.

Windows Virtual Trusted Platform Module

Windows Virtual Trusted Platform Module

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by HongZhenhao with TianGong Team of Legendsec at Qi'anxin Group. 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 flaw in the emulated virtual Trusted Platform Module that allowed memory shaping to break out of the guest isolation.

Impact

An authenticated guest-mode user could potentially escape the virtual machine's contained execution environment, though exploitation was complex and the endpoint was only reachable locally.

What the attacker needed

Authenticated guest-mode user in the VM; local access to the VM interface; complex memory shaping

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 virtual machine is a computer simulated inside another computer, and it is meant to keep whatever runs inside it separate from the real machine. This bug was in a security chip emulated for such a virtual machine, and someone already inside the guest could use it to break out of that separation. Doing so was not simple, because it needed careful manipulation of memory.

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 HongZhenhao

View all

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