# CVE-2021-40829: TLS hostname validation issues within AWS IoT Device SDKs on macOS

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-11-22 · Modified: 2024-08-04
- Aliases: GHSA-743r-5g92-5vgf, PYSEC-2021-862
- Record: https://cvemate.com/vulnerability/CVE-2021-40829 · JSON: https://cvemate.com/vulnerability/CVE-2021-40829/json

## 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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.387%, percentile 34.929%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- amazon web services aws iot device sdk v2 for c++: ≥ unspecified, \< 1.12.7
- amazon web services aws iot device sdk v2 for java: ≥ unspecified, \< 1.4.2
- amazon web services aws iot device sdk v2 for node.js: ≥ unspecified, \< 1.5.3
- amazon web services aws iot device sdk v2 for python: ≥ unspecified, \< 1.6.1
- amazon web services aws-c-io: ≥ unspecified, \< 0.10.4
- amazon amazon\_web\_services\_internet\_of\_things\_device\_software\_development\_kit\_v2: \< 1.4.2 \| \< 1.5.3 \| \< 1.6.1 \| \< 1.12.7
- software.amazon.awssdk.iotdevicesdk aws-iot-device-sdk (Maven): \< 1.4.2
- Npm aws-iot-device-sdk-v2 (Npm): \< 1.5.3
- PyPI awsiotsdk (PyPI): \< 1.6.1

## References

- <https://github.com/awslabs/aws-c-io/>
- <https://github.com/aws/aws-iot-device-sdk-cpp-v2>
- <https://github.com/aws/aws-iot-device-sdk-python-v2>
- <https://github.com/aws/aws-iot-device-sdk-java-v2>
- <https://github.com/aws/aws-iot-device-sdk-js-v2>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40829>
- <https://github.com/advisories/GHSA-743r-5g92-5vgf>
- <https://github.com/aws/aws-iot-device-sdk-java-v2/commits/v1.4.2>
- <https://github.com/awslabs/aws-c-io>
- <https://github.com/pypa/advisory-database/tree/main/vulns/awsiotsdk/PYSEC-2021-862.yaml>

---

Data as of 2026-12-05T07:38:01.050Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
