CVE-2021-40829
JSON

6.3medium

TLS hostname validation issues within AWS IoT Device SDKs on macOS

Severity
6.3medium CVSS:3.1 by F-SecureUS
Exploit likelihood
0.39% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
F-SecureUS
Also known as
GHSA-743r-5g92-5vgfPYSEC-2021-862

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

Product or packageVersionsReported by
Amazon Web Services AWS IoT Device SDK v2 for Javafrom unspecified before 1.4.2CVE List
Amazon Web Services AWS IoT Device SDK v2 for Pythonfrom unspecified before 1.6.1CVE List
Amazon Web Services AWS IoT Device SDK v2 for C++from unspecified before 1.12.7CVE List
Amazon Web Services AWS IoT Device SDK v2 for Node.jsfrom unspecified before 1.5.3CVE List
Amazon Web Services AWS-C-IOfrom unspecified before 0.10.4CVE List
software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk (Maven)before 1.4.2GitHub Advisory Database
aws-iot-device-sdk-v2 (npm)before 1.5.3GitHub Advisory Database
awsiotsdk (PyPI)before 1.6.1GitHub Advisory Database, PyPA Advisory Database
amazon amazon_web_services_internet_of_things_device_software_development_kit_v2before 1.4.2, before 1.5.3, before 1.6.1, before 1.12.7NVD

All scores

F-SecureUS6.3medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
GitHub6.3high CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD5.8medium CVSS:2.0AV:A/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Las conexiones inicializadas por AWS IoT Device SDK v2 para Java (versiones anteriores a 1.4.2), Python (versiones anteriores a 1.6.1), C++ (versiones anteriores a 1.12.7) y Node.js (versiones anteriores a 1.5.3) no verificaban el nombre de host del certificado del servidor durante el handshake TLS cuando anulaban las Autoridades de Certificación (CA) en sus almacenes confiable en MacOS. Este problema se ha abordado en las versiones 0.10.5 y posteriores del submódulo aws-c-io. Este problema afecta a: Amazon Web Services AWS IoT Device SDK v2 para versiones de Java anteriores a 1.4.2 en macOS. Amazon Web Services AWS IoT Device SDK v2 para versiones de Python anteriores a 1.6.1 en macOS. Amazon Web Services AWS IoT Device SDK v2 para versiones de C++ anteriores a 1.12.7 en macOS. Amazon Web Services AWS IoT Device SDK v2 para versiones de Node.js anteriores a 1.5.3 en macOS. Amazon Web Services AWS-C-IO 0.10.4 en macOS

References

Sources

SourceRecordLicence
CVE ListCVE-2021-40829 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-743r-5g92-5vgf changed 2024-11-23CC-BY-4.0
NVDCVE-2021-40829 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-862 changed 2023-11-08CC-BY-4.0