Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-38647: OMIGOD

Published Sep 15, 2021 · Updated 19 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2021-38647CWE-306

CVE-2021-38647 is an unauthenticated remote code execution vulnerability in Microsoft Open Management Infrastructure (OMI), a management framework for UNIX and Linux commonly installed by Azure management and monitoring services. Vulnerable OMI endpoints accept crafted HTTP requests without an Authorization header and permit command execution instead of returning an HTTP 401 response. Exploitation can invoke SCXcore RunAs provider operations, including ExecuteShellCommand and ExecuteScript, with the privileges of the OMI agent, normally root. Affected versions precede OMI 1.6.8.1.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise the confidentiality, integrity, and availability of the affected host through arbitrary command execution, normally as root. Observed exploitation has included host reconnaissance and attempts to install cryptocurrency miners; Mirai botnet installation has also been reported.

Mitigation

If you can’t patch tonight, do this now.

Until patched, block untrusted network access to OMI HTTP/HTTPS management listeners, particularly TCP ports 1270, 5985, and 5986. Disable unnecessary OMI network listeners or restrict access to trusted management systems. Monitor external connections to these ports and unexpected SCX RunAs provider activity for possible exploitation.

Remediation

Patch, then assume compromise.

Upgrade OMI to version 1.6.8.1 or later, also represented as package version 1.6.8-1. Inventory standalone OMI installations and Azure agents that bundle it, update the affected packages or agents, and verify the installed OMI version rather than assuming the cloud provider has patched the guest operating system.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
cve_2021_38647_omigod.rbThis repository contains a single Metasploit module (modules/exploits/linux/misc/cve_2021_38647_omigod.rb) that exploits CVE-2021-38647, also known as OMIGOD. The exploit targets the Microsoft Open Management Infrastructure (OMI) service on Linux/Unix systems, specifically versions prior to 1.6.8-1. The vulnerability is an authentication bypass that allows an attacker to send crafted HTTP POST requests (SOAP/XML) to the OMI management endpoint (default /wsman on port 5985) and execute arbitrary operating system commands as root. The module supports both direct command execution and staged payloads (droppers), leveraging Metasploit's CmdStager for more complex payload delivery. The code is written in Ruby and is fully integrated into the Metasploit framework, making it weaponized and easy to use for attackers. The main attack vector is network-based, requiring access to the OMI management port. The module includes references to public advisories and research, and is designed for reliable exploitation with minimal configuration.Disclosed Sep 14, 2021 · Framework: metasploit · ruby · networkWeaponizedCVE-2021-38647This repository contains a proof-of-concept exploit for CVE-2021-38647 (OMIGOD), a critical unauthenticated remote code execution vulnerability in the Microsoft OMI agent (Open Management Infrastructure) commonly deployed on Azure Linux servers. The repository consists of a Python script (omigod.py) and a README.md. The exploit script constructs and sends a malicious SOAP request to the OMI agent's WS-Man endpoint (default TCP port 5986 over HTTPS), injecting an arbitrary shell command for execution as root. The script takes the target IP address and the desired command as arguments, then prints the command's output and error. The README provides usage instructions, mitigation advice, and background information. The exploit is operational, allowing attackers to execute arbitrary commands remotely and unauthenticated, provided the target is running a vulnerable OMI agent version. The main fingerprintable endpoint is the WS-Man service at https://<target>:5986/wsman.horizon3ai · Disclosed Sep 16, 2021 · python · networkOperationalCVE-2021-38647This repository is a proof-of-concept (POC) exploit for CVE-2021-38647, a critical vulnerability in Microsoft's Open Management Infrastructure (OMI) service. The repository contains two files: a README.md explaining the exploit and usage, and a payload.xml file containing a SOAP envelope. The exploit works by sending a crafted POST request to the /wsman endpoint of a vulnerable OMI service (typically on port 5986), with the payload.xml as the request body. The payload demonstrates remote command execution by running the 'id' command, but the command can be replaced with any desired shell command. The main fingerprintable endpoint is the HTTP URL (http://192.168.1.1:5986/wsman/), which should be changed to the actual target. The exploit does not include automation scripts; it is intended as a manual POC to demonstrate the vulnerability.midoxnet · Disclosed Sep 15, 2021 · xml · networkPoCCVE-2021-38647This repository provides a proof-of-concept (POC) exploit for CVE-2021-38647, also known as OMIGOD, which is an unauthenticated remote code execution vulnerability in Microsoft's Open Management Infrastructure (OMI) service, commonly installed on Azure UNIX/Linux VMs. The repository contains two main exploit scripts: a Python script (CVE-2021-38647.py) and a PowerShell script (Invoke-CVE-2021-38647.ps1). Both scripts allow an attacker to send specially crafted SOAP requests to the OMI service over HTTPS (default port 5986), exploiting the lack of authentication to execute arbitrary shell commands or scripts as root on the target system. The Python script is command-line driven, while the PowerShell script is designed for use in Windows environments. The README provides detailed usage instructions, background on the vulnerability, and references for further reading. No detection or mitigation scripts are included; the focus is on exploitation. The exploit is a POC and requires the attacker to specify the target IP, port, and command or script to execute. The repository is well-structured, with clear separation between code, documentation, and licensing.AlteredSecurity · Disclosed Sep 20, 2021 · python · powershell · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationAzure Automation State Configurationapplication
Microsoft CorporationAzure Automation Update Managementapplication
Microsoft CorporationAzure Diagnosticsapplication
Microsoft CorporationAzure Diagnostics (Lad)application
Microsoft CorporationAzure Open Management Infrastructureapplication
Microsoft CorporationAzure Security Centerapplication
Microsoft CorporationAzure Stack Hubapplication
Microsoft CorporationContainer Monitoring Solutionapplication
Microsoft CorporationLog Analytics Agentapplication
Microsoft CorporationOpen Management Infrastructureapplication
Microsoft CorporationSentinelapplication
Microsoft CorporationSystem Center Operations Managerapplication
FAQ

Frequently asked questions

Is CVE-2021-38647 exploited in the wild?
Yes. As of Nov 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2021-38647?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2021-38647, the earliest disclosed Sep 14, 2021.
Is there a patch for CVE-2021-38647?
Upgrade OMI to version 1.6.8.1 or later, also represented as package version 1.6.8-1. Inventory standalone OMI installations and Azure agents that bundle it, update the affected packages or agents, and verify the installed OMI version rather than assuming the cloud provider has patched the guest operating system.
What products are affected by CVE-2021-38647?
Microsoft Corporation Open Management Infrastructure, Microsoft Corporation Azure Automation State Configuration, Microsoft Corporation Azure Automation Update Management, Microsoft Corporation Azure Diagnostics, Microsoft Corporation Azure Diagnostics (Lad), and 7 more.
How severe is CVE-2021-38647?
CVE-2021-38647 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Nov 9, 2026.
Activity feed

Recent activity

10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+2 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures5YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.