Skip to content
RCE Advisory Intermediate CVE-2021-38647

Open Management Infrastructure (OMI) Remote Code Execution Vulnerability (CVE-2021-38647)

An unauthenticated remote code execution vulnerability exists in Open Management Infrastructure (OMI) when its HTTP/S listener is exposed. An attacker could send a specially crafted message via HTTPS to the OMI port to execute code.

Shir Tamari Follow

Originally disclosed on Microsoft

Critical 9.8 View original

FAQ

Update 9/16/2021: Where can I find more information about how to know if I'm protected and what steps can be taken to be protected? Please see Additional Guidance Regarding OMI Vulnerabilities within Azure VM Management Extensions for more information. What is OMI? Open Management Infrastructure (OMI) is an open source project to further the development of a production quality implementation of the DMTF CIM/WBEM standards. The OMI CIMOM is also designed to be portable and highly modular. In order to attain its small footprint, it is coded in C, which also makes it a much more viable CIM Object Manager for embedded systems and other infrastructure components that have memory constraints for their management processor. OMI is also designed to be inherently portable. It builds and runs today on most UNIX® systems and Linux. In addition to OMI's small footprint, it also demonstrates very high performance. Refer this link for more details : GitHub - microsoft/omi: Open Management Infrastructure How do I protect myself from this vulnerability? Please see Additional Guidance Regarding OMI Vulnerabilities within Azure VM Management Extensions for more information. The updates for this vulnerability were published on GitHub on August 11, 2021. Why is Microsoft just now releasing a CVE? The fix to address this vulnerability in open-source code was made available on August 11 to provide partners who depend on this software time to implement the updates before we released the details of the vulnerability.

FAQ

How does this vulnerability manifest itself? Some Azure products, such as Configuration Management, expose an HTTP/S port listening to OMI (typically port 5986 ). This configuration where the HTTP/S listener is enabled could allow remote code execution. It is important to mention that most Azure services that use OMI deploy it without exposing the HTTP/S port. How can an attacker exploit the vulnerability? An attacker could send a specially crafted message via HTTPS to port listening to OMI on a vulnerable system. How can I check my Azure Linux Node for this listening port? For different services the port number could be different. On most Linux distributions, the command 'netstat -an | grep <port-number>' will indicate if any processes are listening on <port-number>.

Azure Open Management Infrastructure

Azure Open Management Infrastructure

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Shir Tamari with Wiz.io. 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 an authentication bypass in the OMI HTTP/S listener that allows unauthenticated requests to reach privileged functionality.

Impact

An attacker could achieve remote code execution on systems where the OMI HTTP/S port is exposed; most Azure services deploy OMI without exposing this port.

What the attacker needed

OMI HTTP/S port exposed (typically 5986)

The fix

The vulnerability was fixed in open-source code published on GitHub on August 11, 2021, and users should apply the updates.

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.

OMI is a management service used in some Azure Linux virtual machines. If its web port is open to the internet, an attacker can send a malicious message to that port and run their own commands on the machine without needing a password.

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 Shir Tamari

View all

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