Skip to content

Azure IoT Platform Device SDK Remote Code Execution Vulnerability

Moderate
ericwolz published GHSA-c646-4whf-r67v Feb 10, 2024

Package

No package listed

Affected versions

<2023-12-01

Patched versions

2024-01-01

Description

Impact

The uAMQP is a C library for AMQP 1.0 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 if the preferred protocol to the hub service is the AMQP protocol.
The vulnerability results from a situation where the uAMQP integer overflow exists during decoding a “AMQP_VALUE” with a payload length near max memory size of the system, which may lead to possible RCE.

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

Update submodule with commit 30865c9

Workarounds

None

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L

CVE ID

CVE-2024-25110

Weaknesses

No CWEs