CVE-2021-40829: amazon web services aws iot device sdk v2 for c++ Improper Certificate Validation
Vulnerability summary
CVE-2021-40829 is a high (CVSS 8.8) Improper Certificate Validation vulnerability in amazon web services aws iot device sdk v2 for c++. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 31.2% of scored vulnerabilities.
Timeline
- 22-11-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 5 sources · 3 versions- OSV · NpmEcosystem advisory · calculated7.3HighCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · MavenEcosystem advisory · calculated7.3HighCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CVE.orgCNA6.3MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · PypiEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · NpmEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · MavenEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
31%
Versus all other CVEs
30-day change
0.00 pp
From 0.39% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Amazon web services5 products
- aws iot device sdk v2 for c++≥ unspecified, < 1.12.7
- aws iot device sdk v2 for java≥ unspecified, < 1.4.2
- aws iot device sdk v2 for node.js≥ unspecified, < 1.5.3
- aws iot device sdk v2 for python≥ unspecified, < 1.6.1
- aws-c-io≥ unspecified, < 0.10.4
Amazon1 product
- amazon_web_services_internet_of_things_device_software_development_kit_v2< 1.4.2 | < 1.5.3 | < 1.6.1 | < 1.12.7
Npm1 product
- aws-iot-device-sdk-v2< 1.5.3
PyPI1 product
- awsiotsdk< 1.6.1
Software.amazon.awssdk.iotdevicesdk1 product
- aws-iot-device-sdk< 1.4.2
5 vendors · 9 products