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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk | 1.4.2 | GHSA-743r-5g92-5vgf |
| PyPI | awsiotsdk | 1.6.1 | GHSA-743r-5g92-5vgf |
| PyPI | awsiotsdk | 1.6.1 | PYSEC-2021-862 |
| npm | aws-iot-device-sdk-v2 | 1.5.3 | GHSA-743r-5g92-5vgf |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- 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