Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-38647

CVE-2021-38647: Azure Automation State Config RCE Flaw

CVE-2021-38647 is a remote code execution vulnerability in Microsoft Azure Automation State Configuration affecting Open Management Infrastructure. Attackers can exploit this flaw to execute arbitrary code remotely. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published: March 4, 2026

CVE-2021-38647 Overview

CVE-2021-38647 is a critical remote code execution vulnerability in Microsoft's Open Management Infrastructure (OMI), a Unix/Linux-based remote management framework deployed across numerous Azure services. This vulnerability, commonly referred to as "OMIGOD," allows unauthenticated attackers to execute arbitrary commands with root privileges on vulnerable systems by sending specially crafted HTTP requests to the OMI service.

The vulnerability arises from an authentication bypass flaw in the OMI service, which listens on ports 5985, 5986, or 1270 depending on configuration. When OMI is exposed to the network, attackers can exploit this flaw without any credentials, making it particularly dangerous in cloud environments where OMI is automatically installed as part of various Azure management extensions.

Critical Impact

Unauthenticated remote attackers can achieve root-level code execution on vulnerable Azure Linux VMs and on-premises systems running OMI, potentially leading to complete system compromise, data exfiltration, and lateral movement within cloud environments.

Affected Products

  • Microsoft Azure Automation State Configuration
  • Microsoft Azure Automation Update Management
  • Microsoft Azure Diagnostics (LAD)
  • Microsoft Azure Open Management Infrastructure
  • Microsoft Azure Security Center
  • Microsoft Azure Sentinel
  • Microsoft Azure Stack Hub
  • Microsoft Container Monitoring Solution
  • Microsoft Log Analytics Agent
  • Microsoft System Center Operations Manager

Discovery Timeline

  • September 15, 2021 - CVE-2021-38647 published to NVD
  • October 30, 2025 - Last updated in NVD database

Technical Details for CVE-2021-38647

Vulnerability Analysis

The OMIGOD vulnerability exists in the authentication mechanism of the Open Management Infrastructure agent. The OMI agent is a lightweight WS-Management protocol implementation for Linux systems that enables remote management operations similar to Windows Management Instrumentation (WMI).

The core issue lies in how the OMI service handles incoming HTTP requests. When processing authentication headers, the service fails to properly validate the Authorization header. If the header is simply omitted or set to an empty value, the OMI service defaults to treating the request as authenticated with root privileges. This design flaw means that by removing or nullifying authentication information, an attacker paradoxically gains elevated access.

The vulnerability affects the omiserver process which, when configured with HTTPS management ports exposed externally, can be reached directly over the network. In Azure environments, many customers were unknowingly exposed because OMI was installed automatically as a dependency of popular Azure extensions without explicit notification.

Root Cause

The root cause of CVE-2021-38647 is an authentication bypass vulnerability stemming from improper handling of the Authorization header in HTTP requests to the OMI agent. The OMI codebase incorrectly assumes that the absence of an authentication header indicates a trusted local connection, defaulting to root-level privileges. This flawed logic allows remote attackers to bypass authentication entirely by omitting credentials from their requests. The vulnerability represents a fundamental design flaw in the authentication validation logic rather than a simple implementation bug.

Attack Vector

The attack vector for CVE-2021-38647 is network-based and requires no user interaction or privileges. An attacker can exploit this vulnerability by sending a malicious SOAP envelope to the OMI service's HTTP(S) endpoint. The attack works by crafting an ExecuteShellCommand request wrapped in a WS-Management SOAP message, omitting the Authorization header entirely.

When the OMI service receives this request, it processes the command with root privileges due to the authentication bypass. The attacker can execute arbitrary shell commands, install malware, create backdoor accounts, pivot to other systems, or exfiltrate sensitive data from the compromised host.

The vulnerability is particularly severe because:

  • No authentication is required
  • Commands execute as root
  • Many Azure services silently install OMI
  • Network exposure may be unintentional
  • The attack can be automated at scale

For technical details on the exploitation mechanism, refer to the Packet Storm Security Exploit documentation and the Microsoft Security Advisory.

Detection Methods for CVE-2021-38647

Indicators of Compromise

  • Unexpected HTTP requests to OMI ports (5985, 5986, or 1270) from external IP addresses
  • SOAP requests containing ExecuteShellCommand operations without valid Authorization headers
  • Unusual root-level process spawning from the omiserver process
  • New user accounts or SSH keys added to the system without authorization
  • Outbound network connections from omiserver to unknown external destinations

Detection Strategies

  • Monitor network traffic for requests to OMI management ports (TCP 5985, 5986, 1270) from untrusted sources
  • Implement host-based detection rules for suspicious process trees originating from the OMI agent
  • Deploy SIEM rules to detect SOAP envelopes containing ExecuteShellCommand class operations
  • Enable audit logging for the /opt/omi/ directory and OMI configuration changes

Monitoring Recommendations

  • Audit all Azure Linux VMs to identify instances running vulnerable OMI versions using dpkg -l omi or rpm -qa omi
  • Continuously monitor firewall logs for connection attempts to OMI ports from external networks
  • Enable Azure Defender for Servers to receive alerts on suspicious activity related to OMI exploitation
  • Review process execution logs for commands spawned by the omiserver parent process

How to Mitigate CVE-2021-38647

Immediate Actions Required

  • Update OMI to version 1.6.8.1 or later immediately on all affected systems
  • Block external access to OMI ports (5985, 5986, 1270) using network security groups or firewalls
  • Review Azure VMs for unauthorized users, SSH keys, or persistent backdoors
  • Conduct forensic analysis on any systems that had OMI ports exposed to the internet

Patch Information

Microsoft has released security updates addressing CVE-2021-38647. The patched version of OMI is 1.6.8.1 or later. For Azure services, Microsoft has automatically updated many affected extensions, but customers should verify their OMI version manually.

To check your current OMI version:

bash
/opt/omi/bin/omiserver --version

Refer to the Microsoft Security Advisory CVE-2021-38647 for detailed patching instructions and the complete list of updated Azure extensions. This vulnerability is listed in the CISA Known Exploited Vulnerabilities Catalog, making timely patching mandatory for federal agencies.

Workarounds

  • Restrict network access to OMI ports using Azure Network Security Groups (NSGs) with explicit deny rules for inbound traffic
  • If OMI is not required, disable or uninstall the omiserver service using systemctl stop omiserver && systemctl disable omiserver
  • Implement host-based firewall rules using iptables or firewalld to limit OMI access to localhost only
  • For environments where patching is delayed, consider removing the OMI package entirely if the dependent Azure features are not in use
bash
# Block external access to OMI ports using iptables
iptables -A INPUT -p tcp --dport 5985 -j DROP
iptables -A INPUT -p tcp --dport 5986 -j DROP
iptables -A INPUT -p tcp --dport 1270 -j DROP

# Verify OMI version
/opt/omi/bin/omiserver --version

# Disable OMI service if not needed
systemctl stop omiserver
systemctl disable omiserver

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Packet Storm Security Exploit

  • CISA Known Exploited Vulnerability CVE-2021-38647
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-38647
  • Related CVEs
  • CVE-2026-32191: Microsoft Bing Images RCE Vulnerability

  • CVE-2026-21536: Microsoft Devices Pricing RCE Vulnerability

  • CVE-2026-27848: MR9600/MX4200 RCE Vulnerability

  • CVE-2021-24105: Package Manager Configurations RCE Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English