VYPR
High severityNVD Advisory· Published Nov 22, 2021· Updated Aug 4, 2024

Inconsistent CA override function behavior within AWS IoT Device SDKs on Unix systems

CVE-2021-40830

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdkMaven
< 1.5.01.5.0
aws-iot-device-sdk-v2npm
< 1.5.31.5.3
awsiotsdkPyPI
< 1.6.11.6.1

Affected products

1

Patches

3
0450ce68add7

Fix Mac SNI check with overridden root CA (#211)

1 file changed · +1 1
  • setup.py+1 1 modified
    @@ -40,7 +40,7 @@ def _load_version():
             "Operating System :: OS Independent",
         ],
         install_requires=[
    -        'awscrt==0.11.22',
    +        'awscrt==0.11.25',
         ],
         python_requires='>=3.6',
     )
    
53a36e3ac203

Crt update to pull in Mac SNI fix (#169)

https://github.com/aws/aws-iot-device-sdk-js-v2Bret AmbroseJun 28, 2021via ghsa
2 files changed · +8 8
  • package.json+1 1 modified
    @@ -30,6 +30,6 @@
         "typescript": "^3.9.7"
       },
       "dependencies": {
    -    "aws-crt": "1.8.1"
    +    "aws-crt": "1.8.2"
       }
     }
    
  • package-lock.json+7 7 modified
    @@ -9,7 +9,7 @@
           "version": "1.0.0-dev",
           "license": "Apache-2.0",
           "dependencies": {
    -        "aws-crt": "1.8.1"
    +        "aws-crt": "1.8.2"
           },
           "devDependencies": {
             "@convergencelabs/typedoc-plugin-custom-modules": "^0.4.0",
    @@ -143,9 +143,9 @@
           "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
         },
         "node_modules/aws-crt": {
    -      "version": "1.8.1",
    -      "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.8.1.tgz",
    -      "integrity": "sha512-yrG6CR16fMTUGM8Se6Dh1qWiJoILxuADGSBzgwOeGV5i3MUxe51uDgkX6TvJdv04ed2knQhGXrj53ebEb5qjQw==",
    +      "version": "1.8.2",
    +      "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.8.2.tgz",
    +      "integrity": "sha512-VXg2IeVG67nhj2mCvDjSNj6p5lvKTElnSfJYjjjWNt92xKcCyffUuz+cLVmM4BeoYmi3XztNiyGeG27dGHOVtw==",
           "hasInstallScript": true,
           "dependencies": {
             "astral-regex": "^2.0.0",
    @@ -2432,9 +2432,9 @@
           "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
         },
         "aws-crt": {
    -      "version": "1.8.1",
    -      "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.8.1.tgz",
    -      "integrity": "sha512-yrG6CR16fMTUGM8Se6Dh1qWiJoILxuADGSBzgwOeGV5i3MUxe51uDgkX6TvJdv04ed2knQhGXrj53ebEb5qjQw==",
    +      "version": "1.8.2",
    +      "resolved": "https://registry.npmjs.org/aws-crt/-/aws-crt-1.8.2.tgz",
    +      "integrity": "sha512-VXg2IeVG67nhj2mCvDjSNj6p5lvKTElnSfJYjjjWNt92xKcCyffUuz+cLVmM4BeoYmi3XztNiyGeG27dGHOVtw==",
           "requires": {
             "astral-regex": "^2.0.0",
             "axios": "^0.21.1",
    
67950ad2a02f

Windows SNI with CA Override (#164)

1 file changed · +1 1
  • sdk/pom.xml+1 1 modified
    @@ -42,7 +42,7 @@
         <dependency>
           <groupId>software.amazon.awssdk.crt</groupId>
           <artifactId>aws-crt</artifactId>
    -      <version>0.12.6</version>
    +      <version>0.12.8</version>
         </dependency>
         <dependency>
           <groupId>junit</groupId>
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.