{"id":"CVE-2021-40829","published":"2021-11-22T23:41:17Z","modified":"2024-08-04T02:51:06Z","title":"TLS hostname validation issues within AWS IoT Device SDKs on macOS","vendor":"Amazon Web Services","product":"AWS IoT Device SDK v2 for Java","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00387,"percentile":0.24501,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/awslabs/aws-c-io/","tags":["x_refsource_MISC"]},{"url":"https://github.com/aws/aws-iot-device-sdk-cpp-v2","tags":["x_refsource_MISC"]},{"url":"https://github.com/aws/aws-iot-device-sdk-python-v2","tags":["x_refsource_MISC"]},{"url":"https://github.com/aws/aws-iot-device-sdk-java-v2","tags":["x_refsource_MISC"]},{"url":"https://github.com/aws/aws-iot-device-sdk-js-v2","tags":["x_refsource_MISC"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":4.9},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"amazon-web-services","affectedVersions":[{"vendor":"Amazon Web Services","product":"AWS IoT Device SDK v2 for Java","versions":[">= unspecified, < 1.4.2"]},{"vendor":"Amazon Web Services","product":"AWS IoT Device SDK v2 for Python","versions":[">= unspecified, < 1.6.1"]},{"vendor":"Amazon Web Services","product":"AWS IoT Device SDK v2 for C++","versions":[">= unspecified, < 1.12.7"]},{"vendor":"Amazon Web Services","product":"AWS IoT Device SDK v2 for Node.js","versions":[">= unspecified, < 1.5.3"]},{"vendor":"Amazon Web Services","product":"AWS-C-IO","versions":[">= unspecified, < 0.10.4"]}],"solutions":{"items":["Update to the latest versions of the AWS IoT Device SDK."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk","vulnerableRanges":["<1.4.2"],"patched":["1.4.2"],"from":["GHSA-743r-5g92-5vgf"],"provenance":"source"},{"ecosystem":"npm","package":"aws-iot-device-sdk-v2","vulnerableRanges":["<1.5.3"],"patched":["1.5.3"],"from":["GHSA-743r-5g92-5vgf"],"provenance":"source"},{"ecosystem":"PyPI","package":"awsiotsdk","vulnerableRanges":["<1.6.1"],"patched":["1.6.1"],"from":["GHSA-743r-5g92-5vgf","PYSEC-2021-862"],"provenance":"source"}],"summary":{"text":"The flaw is a TLS hostname validation failure in AWS IoT Device SDKs on macOS, where connections that override the trust store's Certificate Authorities do not verify the server certificate's hostname during the handshake; it affects the AWS IoT Device SDK v2 for Java, Python, C++ and Node.js, along with the aws-c-io submodule (0.10.4). An attacker positioned to intercept or redirect traffic to a device or client using these SDKs on macOS could impersonate the server, which requires adjacent network access, high-privilege conditions, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:03Z"},"euvd":{"id":"EUVD-2021-0029","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-40828","published":"2021-11-22","fixed":"1.3.3","kev":false,"link":{"from":"CVE-2021-40828","to":"CVE-2021-40829","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk","fromFixed":"1.3.3","toFixed":"1.4.2","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:aws-iot-device-sdk-v2","fromFixed":"1.5.1","toFixed":"1.5.3","daysApart":0},{"kind":"similar","provenance":"machine","score":0.93,"basis":"same product + description similarity"}]}},{"cve":"CVE-2021-40829","published":"2021-11-22","fixed":"1.4.2","kev":false},{"cve":"CVE-2021-40830","published":"2021-11-22","fixed":"1.5.0","kev":false,"link":{"from":"CVE-2021-40829","to":"CVE-2021-40830","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk","fromFixed":"1.4.2","toFixed":"1.5.0","daysApart":0},{"kind":"similar","provenance":"machine","score":0.58,"basis":"same product + description similarity"}]}},{"cve":"CVE-2021-40831","published":"2021-11-22","fixed":"1.5.0","kev":false,"link":{"from":"CVE-2021-40829","to":"CVE-2021-40831","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk","fromFixed":"1.4.2","toFixed":"1.5.0","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:aws-iot-device-sdk-v2","fromFixed":"1.5.3","toFixed":"1.6.0","daysApart":0},{"kind":"similar","provenance":"machine","score":0.64,"basis":"same product + description similarity"}]}}],"package":"Maven:software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk"}}