TLS hostname validation issues within AWS IoT Device SDKs on Windows
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdkMaven | < 1.3.3 | 1.3.3 |
aws-iot-device-sdk-v2npm | < 1.5.1 | 1.5.1 |
awsiotsdkPyPI | < 1.5.18 | 1.5.18 |
Affected products
1- Range: unspecified
Patches
3fd4c0ba04b35Update to latest CRT (#208)
1 file changed · +1 −1
setup.py+1 −1 modified@@ -40,7 +40,7 @@ def _load_version(): "Operating System :: OS Independent", ], install_requires=[ - 'awscrt==0.11.20', + 'awscrt==0.11.22', ], python_requires='>=3.6', )
67950ad2a02fWindows SNI with CA Override (#164)
1 file changed · +1 −1
sdk/pom.xml+1 −1 modified@@ -42,7 +42,7 @@ <dependency> <groupId>software.amazon.awssdk.crt</groupId> <artifactId>aws-crt</artifactId> - <version>0.12.6</version> + <version>0.12.8</version> </dependency> <dependency> <groupId>junit</groupId>
4be41394f1aeUpdate CRT version to pull in multiple fixes (#159)
2 files changed · +8 −8
package.json+1 −1 modified@@ -30,6 +30,6 @@ "typescript": "^3.9.7" }, "dependencies": { - "aws-crt": "1.7.0" + "aws-crt": "1.7.1" } }
package-lock.json+7 −7 modified@@ -9,7 +9,7 @@ "version": "1.0.0-dev", "license": "Apache-2.0", "dependencies": { - "aws-crt": "1.7.0" + "aws-crt": "1.7.1" }, "devDependencies": { "@convergencelabs/typedoc-plugin-custom-modules": "^0.4.0", @@ -118,9 +118,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "node_modules/aws-crt": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.7.0.tgz", - "integrity": "sha512-cM+APBG22hzu3a61B6KhumON1j/CK5JwoDk56HOFlCTi47MVliX20H+NEWdogM2QSpsyZSr0J2MSL9hJpH1AJw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.7.1.tgz", + "integrity": "sha512-PByLy6ljPr4zwxQN16h2Nb62PhUCcjqg+kvpLn94iYmJekm8W6dk5pCVc0QCE7+VNMFIbaexZOymFugvMvbKzg==", "hasInstallScript": true, "dependencies": { "axios": "^0.21.1", @@ -2239,9 +2239,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-crt": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.7.0.tgz", - "integrity": "sha512-cM+APBG22hzu3a61B6KhumON1j/CK5JwoDk56HOFlCTi47MVliX20H+NEWdogM2QSpsyZSr0J2MSL9hJpH1AJw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.7.1.tgz", + "integrity": "sha512-PByLy6ljPr4zwxQN16h2Nb62PhUCcjqg+kvpLn94iYmJekm8W6dk5pCVc0QCE7+VNMFIbaexZOymFugvMvbKzg==", "requires": { "axios": "^0.21.1", "cmake-js": "^6.1.0",
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-94jq-q5v2-76wjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-40828ghsaADVISORY
- github.com/aws/aws-iot-device-sdk-java-v2/commit/67950ad2a02f2f9355c310b69dc9226b017f32f2ghsaWEB
- github.com/aws/aws-iot-device-sdk-js-v2/commit/4be41394f1aee979e6f4b012fcb01eecabd0c08dghsaWEB
- github.com/aws/aws-iot-device-sdk-python-v2/commit/fd4c0ba04b35eab9e20c635af5548fcc5a92d8beghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/awsiotsdk/PYSEC-2021-861.yamlghsaWEB
News mentions
0No linked articles in our index yet.