CVE-2021-40829
HIGH 8.8CVSS 3.1Improper certificate management in AWS IoT Device SDK v2
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.
- Published
- 23 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve-notifications-us@f-secure.com
- NVD status
- Modified
- Weakness
- CWE-295
- Also known as
- GHSA-743r-5g92-5vgfPYSEC-2021-862
- Sources
- NVDJSONOSV GHSA-743r-5g92-5vgfJSONOSV PYSEC-2021-862JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cve-notifications-us@f-secure.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:A/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:java:*:* |
< 1.4.2 | 1.4.2 |
| NVD | amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:node.js:*:* |
< 1.5.3 | 1.5.3 |
| NVD | amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:python:*:* |
< 1.6.1 | 1.6.1 |
| NVD | amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:c\+\+:*:* |
< 1.12.7 | 1.12.7 |
| OSV | Maven | software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk | < 1.4.2 | 1.4.2 |
| OSV | npm | aws-iot-device-sdk-v2 | < 1.5.3 | 1.5.3 |
| OSV | PyPI | awsiotsdk | < 1.6.1 | 1.6.1 |
References
- https://github.com/aws/aws-iot-device-sdk-cpp-v2 · Product, WEB
- https://github.com/aws/aws-iot-device-sdk-java-v2 · Product, WEB
- https://github.com/aws/aws-iot-device-sdk-js-v2 · Product, WEB
- https://github.com/aws/aws-iot-device-sdk-python-v2 · Product, WEB
- https://github.com/awslabs/aws-c-io/ · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-40829 · ADVISORY
- https://github.com/advisories/GHSA-743r-5g92-5vgf · ADVISORY
- https://github.com/aws/aws-iot-device-sdk-java-v2/commits/v1.4.2 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/awsiotsdk/PYSEC-2021-862.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 23 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Nov 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 Nov 2021)