Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven📦 npm🐍 PyPI
Not in CISA KEV
HIGH severity

CVE-2021-40829 — aws-iot-device-sdk

HIGH

CVE-2021-40829 is a high-severity (CVSS 8.8) CWE-295 vulnerability in software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk. A fix is available for software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk — see the affected versions and patch details below.

Improper certificate management in AWS IoT Device SDK v2

Also known asGHSA-743r-5g92-5vgfPYSEC-2021-862
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Oct 2, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs30th percentile — riskier than 30% of all scored CVEsHighest risk
0.00%0.30%0.59%0.89%0.1%0.4%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-40829 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

51other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
aws-iot-device-sdk-v2npm
139Kdownloads / week

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 Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
☕Mavensoftware.amazon.awssdk.iotdevicesdk:aws-iot-device-sdkall versions1.4.2software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk:1.4.2
📦npmaws-iot-device-sdk-v2all versions1.5.3npm install aws-iot-device-sdk-v2@1.5.3
🐍PyPIawsiotsdkall versions1.6.1pip install --upgrade 'awsiotsdk==1.6.1'

Affected Products

1 product · 4 configurations
Application
amazon web services internet of things device software development kit v2amazon
< 1.12.7
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk to 1.4.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-40829 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-40829 in your dependencies?

Find it across Maven, npm, PyPI, including transitive dependencies.

CVE-2021-40829: aws-iot-device-sdk — Fixed in 1.4.2