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-40828

HIGH

CVE-2021-40828 is a high-severity (CVSS 8.8) CWE-295 vulnerability in software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk. O3 Security confirms whether CVE-2021-40828 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Improper certificate management in AWS IoT Device SDK v2

Also known asGHSA-94jq-q5v2-76wjPYSEC-2021-861
Published
Nov 23, 2021
Updated
Aug 27, 2026
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Aug 27, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

3 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.

aws-iot-device-sdk-v2npm
110Kdownloads / week

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

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
Mavensoftware.amazon.awssdk.iotdevicesdk:aws-iot-device-sdkall versions1.3.3
📦npmaws-iot-device-sdk-v2all versions1.5.1
🐍PyPIawsiotsdkall versions1.5.18

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. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk to 1.3.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-40828 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.

  4. How O3 protects you

    O3 pinpoints whether CVE-2021-40828 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to CVE-2021-40828. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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

Is CVE-2021-40828 in your dependencies?

O3 detects CVE-2021-40828 across Maven, npm, PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.

CVE-2021-40828: Improper certificate… | O3 Security