Skip to content
RCE Advisory Advanced CVE-2024-21376

Microsoft Azure Kubernetes Service Confidential Container Remote Code Execution Vulnerability (CVE-2024-21376)

A vulnerability in Azure Kubernetes Service Confidential Containers allowed an attacker who could reach the untrusted AKS node to take over confidential guests and containers beyond the network stack they were bound to. Successful exploitation could let an attacker steal credentials and affect resources outside the security scope managed by AKS Confidential Containers.

Yuval Avrahami Follow

Originally disclosed on Microsoft

High 9.0 View original

FAQ

Is there any action I need to take to be protected from this vulnerability? Customer must ensure they are running the latest version of az confcom and Kata Image. Customers who do not have az confcom installed can install the latest version by executing az extension add -n confcom . Customers who are running versions prior to 0.3.3 need to update by executing az extension update -n confcom . For more information, reference: Confidential computing plugin for Confidential VMs . https://learn.microsoft.com/en-us/cli/azure/extension?view=azure-cli-latest#az-extension-update https://github.com/Azure/AgentBaker/blob/master/vhdbuilder/release-notes/AKSCBLMarinerV2/gen2kata/202402.26.0.txt

FAQ

According to the CVSS metric, successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability? An attacker who successfully exploited this vulnerability could steal credentials and affect resources beyond the security scope managed by Azure Kubernetes Service Confidential Containers (AKSCC).

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 requires an attacker to prepare the target environment to improve exploit reliability.

FAQ

How could an attacker exploit this vulnerability? An attacker can access the untrusted AKS Kubernetes node and AKS Confidential Container to take over confidential guests and containers beyond the network stack it might be bound to.

FAQ

According to the CVSS metric, privileges required is none (PR:N). Does the attacker need to be authenticated? No. An unauthenticated attacker can move the same workload onto a machine they control, where the attacker is root.

Microsoft Azure Kubernetes Service

Microsoft Azure Kubernetes Service

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Yuval Avrahami. 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 flaw in the confidential container tooling or Kata image that let a workload on the untrusted node escape the isolation boundary protecting confidential guests.

Impact

An attacker could steal credentials and affect resources beyond the security scope managed by AKS Confidential Containers, though exploitation requires preparing the target environment to improve reliability.

What the attacker needed

Access to the untrusted AKS node; attacker prepares the target environment

The fix

It was fixed by updating the az confcom extension to version 0.3.3 or later and running the latest Kata image.

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.

Confidential containers are meant to keep their contents private even from the machine they run on, using special hardware protection. This bug meant someone who could get onto the ordinary, untrusted part of the cluster could break out of that protection and take over the protected containers. They could then steal credentials and reach things beyond what that cluster was supposed to control.

What is RCE?

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

More by Yuval Avrahami

View all

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

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.