CVE-2021-40828Amazon Web Services Aws-c-io
High 8.8 No auth needed
Follow: this CVE · Amazon · Amazon Web Services Aws-c-io We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 27
- Auth required
- No
- Published
- Nov 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Amazon Web Services Aws-c-io.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk |
< 1.3.3 |
1.3.3 |
— |
| PyPI | awsiotsdk |
< 1.5.18 |
1.5.18 |
pip install "awsiotsdk>=1.5.18" |
| PyPI | awsiotsdk |
< 1.5.18 |
1.5.18 |
pip install "awsiotsdk>=1.5.18" |
| npm | aws-iot-device-sdk-v2 |
< 1.5.1 |
1.5.1 |
npm install aws-iot-device-sdk-v2@1.5.1 |
Per OSV / GitHub Advisories (GHSA-94jq-q5v2-76wj, PYSEC-2021-861). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| amazon | amazon_web_services_aws-c-io | < 0.9.13 |
| amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2 | < 1.3.3 |
| amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2 | < 1.5.1 |
| amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2 | < 1.5.18 |
| amazon | amazon_web_services_internet_of_things_device_software_development_kit_v2 | < 1.12.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Product
- github.com Product
- github.com Product
- github.com Product