Skip to content
Access control Advisory Advanced CVE-2022-30137

Azure Service Fabric Container Elevation of Privilege Vulnerability (CVE-2022-30137)

A privilege escalation flaw existed in Service Fabric Linux clusters running Docker containers, where a container granted access to the Service Fabric runtime could be used to gain higher privileges. An attacker who already had read/write cluster access and could run code inside such a container could elevate their privileges.

Aviv Sasson Follow

Originally disclosed on Microsoft

High 6.7 View original

Description

Executive Summary An Elevation of Privilege (EOP) vulnerability has been identified within Service Fabric clusters that run Docker containers. Exploitation of this EOP vulnerability requires an attacker to gain remote code execution within a container. All Service Fabric and Docker versions are impacted.

FAQ

According to the CVSS metric, privileges required is high (PR:H). What would lead to a successful attack? In order for the successful attack to be initiated, the attacker would need to have read/write access to the cluster and the ability to execute the hostile code inside a container that has been granted access to the Service Fabric runtime.

FAQ

What is being fixed in CVE-2022-30137? Azure Service Fabric team is releasing a patch to further strengthen the security in the Linux cluster by adapting the principle of path to least privilege . Windows cluster are NOT impacted by this vulnerability. How to protect yourself? Customers without automatic updates enabled should upgrade their Linux clusters to the most recent Service Fabric release. Customers whose Linux clusters are automatically updated do not need to take further action. We have also updated our public security guidance to include details regarding the implications of hosting untrusted code or having one’s containers compromised. Please see the information here: Hosting untrusted applications in a Service Fabric cluster

Azure Service Fabric Container

Azure Service Fabric Container

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Aviv Sasson with Palo Alto Networks. 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 the Service Fabric runtime granted containers more access than they needed, so the patch applies the principle of least privilege to file paths.

Impact

An attacker with existing cluster access and code execution in a container could escalate privileges; Windows clusters were not affected.

What the attacker needed

Read/write access to the cluster; ability to run code in a container; container has Service Fabric runtime access; Linux cluster

The fix

It was fixed by a patch that tightened permissions on Linux clusters, and customers without automatic updates should upgrade to the latest Service Fabric release.

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.

Containers are meant to keep code boxed in with limited permissions. This bug meant that code running inside a container on a Service Fabric cluster could break out of its intended limits and gain more power over the cluster. The attacker first needed a way to run their own code in a container that could talk to the Service Fabric runtime.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.