Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-40829

MEDIUM 6.3EPSS 25%

TLS hostname validation issues within AWS IoT Device SDKs on macOS

Also known as GHSA-743r-5g92-5vgf, PYSEC-2021-862

Mitigation

  • Upgrade awsiotsdk to 1.6.1 or later.
  • Upgrade software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk to 1.4.2 or later.
  • Upgrade aws-iot-device-sdk-v2 to 1.5.3 or later.

Who should check

  • Projects that depend on PyPI package awsiotsdk (< 1.6.1)
  • Projects that depend on Maven package software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk (< 1.4.2)
  • Projects that depend on npm package aws-iot-device-sdk-v2 (< 1.5.3)
  • Anyone running Amazon Web Services AWS IoT Device SDK v2 for Java >= unspecified, < 1.4.2
  • Anyone running Amazon Web Services AWS IoT Device SDK v2 for Python >= unspecified, < 1.6.1
  • Anyone running Amazon Web Services AWS IoT Device SDK v2 for C++ >= unspecified, < 1.12.7
  • Anyone running Amazon Web Services AWS IoT Device SDK v2 for Node.js >= unspecified, < 1.5.3
  • Anyone running Amazon Web Services AWS-C-IO >= unspecified, < 0.10.4

Vulnerability facts

Affected
awsiotsdk < 1.6.1; software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk < 1.4.2; aws-iot-device-sdk-v2 < 1.5.3
Fixed in
1.6.1, 1.4.2, 1.5.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.3 (v3.1, CNA)CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Adjacent network
  • Attack complexity: High
  • Privileges required: High
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.39% chance of exploitation in 30 days (percentile 25, 2026-11-26)
CWE
CWE-295
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI awsiotsdk< 1.6.11.6.1osv
Maven software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk< 1.4.21.4.2osv
npm aws-iot-device-sdk-v2< 1.5.31.5.3osv
Amazon Web Services AWS IoT Device SDK v2 for Java>= unspecified, < 1.4.2—cvelist
Amazon Web Services AWS IoT Device SDK v2 for Python>= unspecified, < 1.6.1—cvelist
Amazon Web Services AWS IoT Device SDK v2 for C++>= unspecified, < 1.12.7—cvelist
Amazon Web Services AWS IoT Device SDK v2 for Node.js>= unspecified, < 1.5.3—cvelist
Amazon Web Services AWS-C-IO>= unspecified, < 0.10.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-40829. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-40829.md
Affected: awsiotsdk < 1.6.1; software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk < 1.4.2; aws-iot-device-sdk-v2 < 1.5.3
Fixed in: 1.6.1, 1.4.2, 1.5.3

Steps:
1. Search this machine and project for awsiotsdk (PyPI), software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk (Maven), aws-iot-device-sdk-v2 (npm), Amazon Web Services AWS IoT Device SDK v2 for Java, Amazon Web Services AWS IoT Device SDK v2 for Python, Amazon Web Services AWS IoT Device SDK v2 for C++: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-40829 being exploited?

There is no confirmed exploitation: CVE-2021-40829 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-40829?

Medium: CVSS 6.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2021-40829?

awsiotsdk < 1.6.1; software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk < 1.4.2; aws-iot-device-sdk-v2 < 1.5.3.

Is there a fix for CVE-2021-40829?

Yes. Fixed in 1.6.1, 1.4.2, 1.5.3. Upgrade awsiotsdk to 1.6.1 or later. Upgrade software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk to 1.4.2 or later. Upgrade aws-iot-device-sdk-v2 to 1.5.3 or later.

How do I check if I'm affected by CVE-2021-40829?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors