Vulnerability · Published Nov 22, 2021 · Assigned by F-SecureUS

CVE-2021-40829TLS hostname validation issues within AWS IoT Device SDKs on macOS

Medium 6.3

In plain English

A medium-severity security flaw in AWS-C-IO from Amazon Web Services. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.4%top 67.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Connections initialized by the AWS IoT Device SDK v2 for Java (versions prior to 1.4.2), Python (versions prior to 1.6.1), C++ (versions prior to 1.12.7) and Node.js (versions prior to 1.5.3) did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on MacOS. This issue has been addressed in aws-c-io submodule versions 0.10.5 onward. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.4.2 on macOS. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.6.1 on macOS. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.12.7 on macOS. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.5.3 on macOS. Amazon Web Services AWS-C-IO 0.10.4 on macOS.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavensoftware.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk1.4.2GHSA-743r-5g92-5vgf
PyPIawsiotsdk1.6.1GHSA-743r-5g92-5vgf
PyPIawsiotsdk1.6.1PYSEC-2021-862
npmaws-iot-device-sdk-v21.5.3GHSA-743r-5g92-5vgf

Affected products (as reported)

VendorProductVersions
Amazon Web Services AWS IoT Device SDK v2 for Java unspecified – before 1.4.2
Amazon Web Services AWS IoT Device SDK v2 for Python unspecified – before 1.6.1
Amazon Web Services AWS IoT Device SDK v2 for C++ unspecified – before 1.12.7
Amazon Web Services AWS IoT Device SDK v2 for Node.js unspecified – before 1.5.3
Amazon Web Services AWS-C-IO unspecified – before 0.10.4

References