CVE-2021-40828TLS hostname validation issues within AWS IoT Device SDKs on Windows
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.
What to do
Fixed builds are available from Maven, PyPI, npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| npm library | aws-iot-device-sdk-v2 | Fixed | 1.5.1 | GHSA-94jq-q5v2-76wj |
| PyPI library | awsiotsdk | Fixed | 1.5.18 | PYSEC-2021-861 |
| Maven library | software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk | Fixed | 1.3.3 | GHSA-94jq-q5v2-76wj |
What the vendor says
As published in the CVE record by F-SecureUS, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Amazon Web Services AWS IoT Device SDK v2 for Java: affected: unspecified to before 1.3.3; fixed in
1.3.3 - Amazon Web Services AWS IoT Device SDK v2 for Python: affected: unspecified to before 1.5.18; fixed in
1.5.18 - Amazon Web Services AWS IoT Device SDK v2 for C++: affected: unspecified to before 1.12.7; fixed in
1.12.7 - Amazon Web Services AWS IoT Device SDK v2 for Node.js: affected: unspecified to before 1.5.3; fixed in
1.5.3 - Amazon Web Services AWS-C-IO: affected: 0.9.12
Solution: Update to the latest versions of the AWS IoT Device SDK.
References
- https://github.com/awslabs/aws-c-io/
- https://github.com/aws/aws-iot-device-sdk-cpp-v2
- https://github.com/aws/aws-iot-device-sdk-python-v2
- https://github.com/aws/aws-iot-device-sdk-java-v2
- https://github.com/aws/aws-iot-device-sdk-js-v2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.