BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-40830 in Amazon Web Services Aws-C-Io and 3 more products

High 8.8

The AWS IoT Device SDK v2 for Java, Python, C++ and Node.js appends a user supplied Certificate Authority (CA) to the root CAs instead of overriding it on Unix systems. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system’s default trust-store. Attackers with ac...

Affects 4 products from 3 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 Aws-C-Io 0.10.4
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): Linux Linux Kernel, Open Group Unix

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

The AWS IoT Device SDK v2 for Java, Python, C++ and Node.js appends a user supplied Certificate Authority (CA) to the root CAs instead of overriding it on Unix systems. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system’s default trust-store. Attackers with access to a host’s trust stores or are able to compromise a certificate authority already in the host's trust store (note: the attacker must also be able to spoof DNS in this case) may be able to use this issue to bypass CA pinning. An attacker could then spoof the MQTT broker, and either drop traffic and/or respond with the attacker's data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user's private keys to authenticate against the MQTT broker. The 'aws_tls_ctx_options_override_default_trust_store_*' function within the aws-c-io submodule has been updated to override the default trust store. This corrects this issue. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.5.0 on Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.6.1 on Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.12.7 on Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.5.3 on Linux/Unix. Amazon Web Services AWS-C-IO 0.10.4 on Linux/Unix.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-40830
BreachSpider IDBS-2021-GLOBAL-073168-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

CVE-2021-40830 affects AWS IoT Device SDK v2 for Java, Python, C++ and Node.js by appending a user-supplied Certificate Authority (CA) to the root CAs instead of overriding it on Unix systems, potentially allowing unauthorized TLS handshakes.

Attackers can exploit this vulnerability by providing a malicious CA certificate that is appended to the system's trust store, enabling them to perform man-in-the-middle attacks or impersonate legitimate services.

Questions

What is CVE-2021-40830?

CVE-2021-40830 affects AWS IoT Device SDK v2 for Java, Python, C++ and Node.js by appending a user-supplied Certificate Authority (CA) to the root CAs instead of overriding it on Unix systems, potentially allowing unauthorized TLS handshakes.

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

CVE-2021-40830 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-40830 actively exploited?

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

How do I remediate CVE-2021-40830?

Priority: IMMEDIATE.

What systems are affected by CVE-2021-40830?

CVE-2021-40830 affects Amazon Amazon Web Services Aws-C-Io, 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 Aws-C-Io","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.