CVE-2021-40828
JSON

6.3medium

TLS hostname validation issues within AWS IoT Device SDKs on Windows

Severity
6.3medium CVSS:3.1 by F-SecureUS
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
F-SecureUS
Also known as
GHSA-94jq-q5v2-76wjPYSEC-2021-861

Description

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

Affected

Product or packageVersionsReported by
Amazon Web Services AWS IoT Device SDK v2 for Javafrom unspecified before 1.3.3CVE List
Amazon Web Services AWS IoT Device SDK v2 for Pythonfrom unspecified before 1.5.18CVE 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-IO0.9.12CVE List
software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk (Maven)before 1.3.3GitHub Advisory Database
aws-iot-device-sdk-v2 (npm)before 1.5.1GitHub Advisory Database
awsiotsdk (PyPI)before 1.5.18GitHub Advisory Database, PyPA Advisory Database
amazon amazon_web_services_aws-c-iobefore 0.9.13NVD
amazon amazon_web_services_internet_of_things_device_software_development_kit_v2before 1.3.3, before 1.5.1, before 1.5.18, 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.3medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:A/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.3.3), Python (versions prior to 1.5.18), C++ (versions prior to 1.12.7) and Node.js (versions prior to 1.5.1) did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. This issue has been addressed in aws-c-io submodule versions 0.9.13 onward. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.3.3 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.5.18 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.12.7 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.5.3 on Microsoft Windows.

NVD (es)

Las conexiones inicializadas por AWS IoT Device SDK v2 para Java (versiones anteriores a 1.3.3), Python (versiones anteriores a 1.5.18), C++ (versiones anteriores a 1.12.7) y Node.js (versiones anteriores a 1.5.1) 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 Windows. Este problema se ha abordado en las versiones 0.9.13 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.3.3 en Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 para versiones de Python anteriores a 1.5.18 en Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 para versiones de C++ anteriores a 1.12.7 en Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 para versiones de Node.js anteriores a 1.5.3 en Microsoft Windows

References

https://github.com/awslabs/aws-c-io/product, web
https://github.com/aws/aws-iot-device-sdk-cpp-v2product, web
https://github.com/aws/aws-iot-device-sdk-python-v2product, web
https://github.com/aws/aws-iot-device-sdk-java-v2product, web
https://github.com/aws/aws-iot-device-sdk-js-v2product, web
https://nvd.nist.gov/vuln/detail/CVE-2021-40828advisory
https://github.com/aws/aws-iot-device-sdk-java-v2/commit/67950ad2a02f2f9355c310b69dc9226b017f32f2web
https://github.com/aws/aws-iot-device-sdk-js-v2/commit/4be41394f1aee979e6f4b012fcb01eecabd0c08dweb
https://github.com/aws/aws-iot-device-sdk-python-v2/commit/fd4c0ba04b35eab9e20c635af5548fcc5a92d8beweb
https://github.com/advisories/GHSA-94jq-q5v2-76wjadvisory
https://github.com/awslabs/aws-c-ioweb
https://github.com/pypa/advisory-database/tree/main/vulns/awsiotsdk/PYSEC-2021-861.yamlweb

Sources

SourceRecordLicence
CVE ListCVE-2021-40828 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-94jq-q5v2-76wj changed 2024-09-12CC-BY-4.0
NVDCVE-2021-40828 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-861 changed 2023-11-08CC-BY-4.0