CVE-2021-40831
AWS IoT Device SDK TLS CA Trust Store Vulnerability (Certificate Validation Weakness)
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 macOS systems. Additionally, SNI validation is also not enabled when the CA has been “overridden”. 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 address this behavior. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.5.0 on macOS. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.7.0 on macOS. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.14.0 on macOS. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.6.0 on macOS. Amazon Web Services AWS-C-IO 0.10.7 on macOS.
INFO
Published Date :
Nov. 23, 2021, 12:15 a.m.
Last Modified :
Nov. 21, 2024, 6:24 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
1.2
Affected Products
The following products are affected by CVE-2021-40831
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.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-40831
.
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).
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-40831
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-40831
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:N/AC:M/Au:S/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:H/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.7:*:*:*:*:*:*:* *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.6.0 *cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:python:*:* versions up to (excluding) 1.7.0 *cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:c\+\+:*:* versions up to (excluding) 1.14.0 OR cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*
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-40831
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-40831
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.19 }} -0.04%
score
0.55943
percentile