Vulnerability · Published Nov 22, 2021 · Assigned by F-SecureUS
CVE-2021-40828TLS hostname validation issues within AWS IoT Device SDKs on Windows
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 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk | 1.3.3 | GHSA-94jq-q5v2-76wj |
| PyPI | awsiotsdk | 1.5.18 | GHSA-94jq-q5v2-76wj |
| PyPI | awsiotsdk | 1.5.18 | PYSEC-2021-861 |
| npm | aws-iot-device-sdk-v2 | 1.5.1 | GHSA-94jq-q5v2-76wj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Amazon Web Services | AWS IoT Device SDK v2 for Java | unspecified – before 1.3.3 |
| Amazon Web Services | AWS IoT Device SDK v2 for Python | unspecified – before 1.5.18 |
| 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 | 0.9.12 |
References
- https://github.com/awslabs/aws-c-io/ x_refsource_MISC
- https://github.com/aws/aws-iot-device-sdk-cpp-v2 x_refsource_MISC
- https://github.com/aws/aws-iot-device-sdk-python-v2 x_refsource_MISC
- https://github.com/aws/aws-iot-device-sdk-java-v2 x_refsource_MISC
- https://github.com/aws/aws-iot-device-sdk-js-v2 x_refsource_MISC