A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-29195

CVE-2024-29195: Azure C Shared Utility RCE Vulnerability

CVE-2024-29195 is a remote code execution flaw in Microsoft Azure C Shared Utility affecting IoT Hub devices. Attackers can exploit buffer length parameters to cause heap overflow. This article covers technical details, impact, and mitigation.

Published: June 2, 2026

CVE-2024-29195 Overview

CVE-2024-29195 affects the Azure C Shared Utility, a C library used for AMQP and MQTT communication between Azure IoT Hub and IoT devices. The flaw resides in the buffer length parameter handling, where insufficient validation enables an integer wraparound or under-allocation. This condition can trigger a heap buffer overflow [CWE-120] and may result in remote code execution on affected IoT devices. The Azure IoT C SDK depends on this library, expanding the impact to any device built on that stack. Microsoft patched the vulnerability in commit 1129147c38ac02ad974c4c701a1e01b2141b9fe2.

Critical Impact

An attacker with a compromised Azure account can send malformed payloads exceeding the 128KB IoT Hub message limit to trigger heap corruption and achieve remote code execution on connected IoT devices.

Affected Products

  • Microsoft Azure C Shared Utility (versions prior to commit 1129147c38ac02ad974c4c701a1e01b2141b9fe2)
  • Azure IoT C SDK consumers of the shared utility library
  • IoT devices communicating with Azure IoT Hub via AMQP or MQTT through the affected library

Discovery Timeline

  • 2024-03-26 - CVE-2024-29195 published to NVD
  • 2025-12-15 - Last updated in NVD database

Technical Details for CVE-2024-29195

Vulnerability Analysis

The vulnerability stems from missing arithmetic safety checks in buffer allocation routines within the Azure C Shared Utility. When the library computes allocation sizes derived from an attacker-controlled buffer length parameter, the multiplication or addition can wrap around the unsigned integer boundary. The resulting under-allocated heap region is then written with the larger, untruncated payload, producing a heap buffer overflow.

Because the library handles inbound AMQP and MQTT messages for IoT Hub clients, the corrupted memory sits inside long-running device processes. Successful exploitation requires bypassing the 128KB IoT Hub payload limit and overwriting executable code regions on the target device, conditions that elevate exploitation complexity but do not eliminate the risk for embedded targets.

Root Cause

The root cause is unchecked integer arithmetic on size parameters passed into malloc calls across multiple adapter modules, including adapters/httpapi_curl.c and adapters/httpapi_tirtos.c. The patch introduces the safe_math.h helper to perform overflow-checked size calculations before allocations.

Attack Vector

Exploitation requires a compromised Azure account capable of dispatching crafted cloud-to-device messages through IoT Hub. The attacker sends a payload whose declared length triggers the wraparound during allocation. The subsequent write operation corrupts heap metadata adjacent to the under-allocated buffer, which an attacker can shape to redirect execution flow on the receiving device.

c
// Patch excerpt: adapters/httpapi_curl.c
 #include "mbedtls/ssl.h"
 #endif
 #include "azure_c_shared_utility/shared_util_options.h"
+#include "azure_c_shared_utility/safe_math.h"
 
 #define TEMP_BUFFER_SIZE 1024

Source: Azure C Shared Utility commit 1129147

c
// Patch excerpt: adapters/httpapi_tirtos.c
 #include "azure_c_shared_utility/httpapi.h"
 #include "azure_c_shared_utility/strings.h"
 #include "azure_c_shared_utility/xlogging.h"
+#include "azure_c_shared_utility/safe_math.h"
 
 #define CONTENT_BUF_LEN     128

Source: Azure C Shared Utility commit 1129147

The additions of safe_math.h introduce overflow-safe wrappers around the size calculations that precede each malloc, ensuring oversized inputs are rejected before allocation.

Detection Methods for CVE-2024-29195

Indicators of Compromise

  • Cloud-to-device messages from IoT Hub exceeding or approaching the 128KB payload boundary against devices running the Azure C SDK.
  • Unexpected crashes, restarts, or watchdog resets on IoT devices coinciding with inbound AMQP or MQTT traffic.
  • Anomalous outbound connections originating from IoT devices to non-Azure endpoints after receiving large messages.

Detection Strategies

  • Inventory firmware images and SDKs to identify devices linking against versions of azure-c-shared-utility prior to commit 1129147c38ac02ad974c4c701a1e01b2141b9fe2.
  • Inspect IoT Hub diagnostic logs for malformed payloads, oversized messages, and repeated delivery failures targeting the same device.
  • Correlate Azure Active Directory sign-in anomalies for accounts with IoT Hub data writer permissions with downstream device telemetry gaps.

Monitoring Recommendations

  • Enable IoT Hub diagnostic settings and route logs to a centralized analytics workspace for retention and querying.
  • Alert on Azure RBAC role assignments granting Microsoft.Devices/IotHubs/Send/Action permissions to non-standard identities.
  • Track device twin reported properties and connection state transitions to surface devices that go offline after receiving cloud-to-device messages.

How to Mitigate CVE-2024-29195

Immediate Actions Required

  • Update embedded firmware and applications to consume azure-c-shared-utility containing commit 1129147c38ac02ad974c4c701a1e01b2141b9fe2 or later.
  • Rotate IoT Hub shared access policy keys and review service principal credentials that can send cloud-to-device messages.
  • Audit Azure account access to IoT Hub and enforce multi-factor authentication on all identities with send permissions.

Patch Information

Microsoft fixed the vulnerability by integrating overflow-checked arithmetic through safe_math.h into allocation paths within the Azure C Shared Utility. Apply the changes from Azure C Shared Utility commit 1129147 and review the GitHub Security Advisory GHSA-m8wp-hc7w-x4xg for the full scope of changes. Rebuild and redeploy any firmware that statically links the library.

Workarounds

  • Restrict IoT Hub cloud-to-device messaging permissions to a minimal set of service identities and apply conditional access policies.
  • Enforce payload size and schema validation at an upstream gateway or Azure Function before forwarding messages to constrained devices.
  • Segment IoT devices on isolated network tiers to limit lateral impact if a device is compromised through this flaw.
bash
# Verify the patched commit is included in your library checkout
cd azure-c-shared-utility
git log --oneline | grep 1129147c38ac02ad974c4c701a1e01b2141b9fe2

# Confirm safe_math.h is referenced in adapter sources
grep -R "safe_math.h" adapters/

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Azure

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability2.42%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-m8wp-hc7w-x4xg
  • Related CVEs
  • CVE-2026-21226: Azure Core Shared Client Library RCE Flaw

  • CVE-2024-21646: Microsoft Azure Uamqp RCE Vulnerability

  • CVE-2022-39327: Azure CLI RCE Vulnerability

  • CVE-2026-26135: Azure Custom Locations SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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