8.8
HIGH
CVE-2021-40830
AWS IoT Device SDK Truncated Trust Store Vulnerability
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.

INFO

Published Date :

Nov. 23, 2021, 12:15 a.m.

Last Modified :

Nov. 21, 2024, 6:24 a.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2021-40830 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2021-40830 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Amazon amazon_web_services_aws-c-io
2 Amazon amazon_web_services_internet_of_things_device_software_development_kit_v2
1 Linux linux_kernel
1 Opengroup unix

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Java

Updated: 8 months ago
0 stars 0 fork 0 watcher
Born at : March 4, 2024, 8:09 p.m. This repo has been linked 4 different CVEs too.

Research CVEs

Updated: 2 years, 5 months ago
0 stars 0 fork 0 watcher
Born at : July 18, 2022, 3:23 p.m. This repo has been linked 36 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-40830 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-40830 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/aws/aws-iot-device-sdk-cpp-v2
    Added Reference https://github.com/aws/aws-iot-device-sdk-java-v2
    Added Reference https://github.com/aws/aws-iot-device-sdk-js-v2
    Added Reference https://github.com/aws/aws-iot-device-sdk-python-v2
    Added Reference https://github.com/awslabs/aws-c-io/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Dec. 02, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:A/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3.1 NIST AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/aws/aws-iot-device-sdk-cpp-v2 No Types Assigned https://github.com/aws/aws-iot-device-sdk-cpp-v2 Product
    Changed Reference Type https://github.com/aws/aws-iot-device-sdk-java-v2 No Types Assigned https://github.com/aws/aws-iot-device-sdk-java-v2 Product
    Changed Reference Type https://github.com/aws/aws-iot-device-sdk-js-v2 No Types Assigned https://github.com/aws/aws-iot-device-sdk-js-v2 Product
    Changed Reference Type https://github.com/aws/aws-iot-device-sdk-python-v2 No Types Assigned https://github.com/aws/aws-iot-device-sdk-python-v2 Product
    Changed Reference Type https://github.com/awslabs/aws-c-io/ No Types Assigned https://github.com/awslabs/aws-c-io/ Product
    Added CWE NIST CWE-295
    Added CPE Configuration AND OR *cpe:2.3:a:amazon:amazon_web_services_aws-c-io:0.10.4:*:*:*:*:*:*:* *cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:java:*:* versions up to (excluding) 1.5.0 *cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:node.js:*:* versions up to (excluding) 1.5.3 *cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:python:*:* versions up to (excluding) 1.6.1 *cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:c\+\+:*:* versions up to (excluding) 1.12.7 OR cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* cpe:2.3:o:opengroup:unix:-:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-40830 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-40830 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.11 }} 0.01%

score

0.44401

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability