BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-40829 in Amazon Web Services Internet Of Things Device Software Development Kit V2 and 1 more product

High 8.8

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 s...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.18.8
EPSS0.4%
EPSS percentile25th
FixUnknown

Exploitable from adjacent network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Amazon Amazon Web Services Internet Of Things Device Software Development Kit V2 < 1.12.7

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Apple Macos

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-40829
BreachSpider IDBS-2021-GLOBAL-073165-H
CVSS vectorCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2021-11-23
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-295: CWE-295

Related attack patterns (CAPEC)

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-295

CAPEC-475 Signature Spoofing by Improper Validation via CWE-295

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

AWS IoT Device SDKs for Java, Python, C++, and Node.js versions prior to specified updates do not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on MacOS, leading to potential man-in-the-middle attacks.

An attacker could exploit this vulnerability by intercepting the TLS handshake process and presenting a fraudulent server certificate, which would be accepted by the SDKs due to the lack of hostname verification. This could allow the attacker to eavesdrop on or manipulate the communication between the device and the AWS IoT service.

Questions

What is CVE-2021-40829?

AWS IoT Device SDKs for Java, Python, C++, and Node.js versions prior to specified updates do not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on MacOS, leading to potential man-in-the-middle attacks.

What is the CVSS score for CVE-2021-40829?

CVE-2021-40829 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.4%.

Is CVE-2021-40829 actively exploited?

No confirmed active exploitation of CVE-2021-40829 as of 2026-09-25.

How do I remediate CVE-2021-40829?

Priority: HIGH.

What systems are affected by CVE-2021-40829?

CVE-2021-40829 affects Amazon Amazon Web Services Internet Of Things Device Software Development Kit V2.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Amazon","product":"Amazon Web Services Internet Of Things Device Software Development Kit V2","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.