Skip to content

Azure C SDK Integer Wraparound Vulnerability

Moderate
ericwol-msft published GHSA-m8wp-hc7w-x4xg Mar 22, 2024

Package

No package listed

Affected versions

<2023-12-01

Patched versions

2024-02-08

Description

Impact

The azure-c-shared-utility is a C library for AMQP/MQTT communication to Azure Cloud Services. This library may be used by the Azure IoT C SDK for communication between IoT Hub and IoT Hub devices.

An attacker can cause an integer wraparound or under-allocation or heap buffer overflow due to vulnerabilities in parameter checking mechanism, by exploiting the buffer length parameter in Azure C SDK, which may lead to remote code execution.

Requirements for RCE:

  1. Compromised Azure account allowing malformed payloads to be sent to the device via IoT Hub service
  2. By passing IoT hub service max message payload limit of 128KB
  3. Ability to overwrite code space with remote code.

Patches

Fixed in commit 1129147

Workarounds

None

Severity

Moderate
6.0
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L

CVE ID

CVE-2024-29195

Weaknesses

No CWEs

Credits