All the vulnerabilites related to Amazon Web Services - AWS IoT Device SDK v2 for Python
cve-2021-40829
Vulnerability from cvelistv5
Published
2021-11-22 23:41
Modified
2024-08-04 02:51
Summary
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.
Impacted products
Vendor Product Version
Amazon Web Services AWS IoT Device SDK v2 for Python Version: unspecified   < 1.6.1
Amazon Web Services AWS IoT Device SDK v2 for C++ Version: unspecified   < 1.12.7
Amazon Web Services AWS IoT Device SDK v2 for Node.js Version: unspecified   < 1.5.3
Amazon Web Services AWS-C-IO Version: unspecified   < 0.10.4
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T02:51:06.986Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/awslabs/aws-c-io/"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for Java ",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.4.2",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for Python",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.6.1",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for C++",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.12.7",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for Node.js",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.5.3",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS-C-IO",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "0.10.4",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "F-Secure"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "Connections initialized by the AWS IoT Device SDK v2 for Java, Python, C++ and Node.js did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. ",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2021-11-22T23:41:17",
        "orgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
        "shortName": "F-SecureUS"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/awslabs/aws-c-io/"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Update to the latest versions of the AWS IoT Device SDK."
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "TLS hostname validation issues within AWS IoT Device SDKs on macOS",
      "x_generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve-notifications-us@f-secure.com",
          "ID": "CVE-2021-40829",
          "STATE": "PUBLIC",
          "TITLE": "TLS hostname validation issues within AWS IoT Device SDKs on macOS"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "AWS IoT Device SDK v2 for Java ",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.4.2"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Python",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.6.1"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for C++",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.12.7"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Node.js",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.5.3"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS-C-IO",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "0.10.4"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "Amazon Web Services"
              }
            ]
          }
        },
        "credit": [
          {
            "lang": "eng",
            "value": "F-Secure"
          }
        ],
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "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."
            }
          ]
        },
        "generator": {
          "engine": "Vulnogram 0.0.9"
        },
        "impact": {
          "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "Connections initialized by the AWS IoT Device SDK v2 for Java, Python, C++ and Node.js did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. "
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/awslabs/aws-c-io/",
              "refsource": "MISC",
              "url": "https://github.com/awslabs/aws-c-io/"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-cpp-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-python-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-java-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-js-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
            }
          ]
        },
        "solution": [
          {
            "lang": "en",
            "value": "Update to the latest versions of the AWS IoT Device SDK."
          }
        ],
        "source": {
          "discovery": "INTERNAL"
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
    "assignerShortName": "F-SecureUS",
    "cveId": "CVE-2021-40829",
    "datePublished": "2021-11-22T23:41:17",
    "dateReserved": "2021-09-09T00:00:00",
    "dateUpdated": "2024-08-04T02:51:06.986Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}

cve-2021-40830
Vulnerability from cvelistv5
Published
2021-11-22 23:41
Modified
2024-08-04 02:51
Summary
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.
Impacted products
Vendor Product Version
Amazon Web Services AWS IoT Device SDK v2 for Python Version: unspecified   < 1.6.1
Amazon Web Services AWS IoT Device SDK v2 for C++ Version: unspecified   < 1.12.7
Amazon Web Services AWS IoT Device SDK v2 for Node.js Version: unspecified   < 1.5.3
Amazon Web Services AWS-C-IO Version: 0.10.4
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T02:51:06.863Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/awslabs/aws-c-io/"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "platforms": [
            "Linux/Unix"
          ],
          "product": "AWS IoT Device SDK v2 for Java ",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.5.0",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Linux/Unix"
          ],
          "product": "AWS IoT Device SDK v2 for Python",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.6.1",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Linux/Unix"
          ],
          "product": "AWS IoT Device SDK v2 for C++",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.12.7",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Linux/Unix"
          ],
          "product": "AWS IoT Device SDK v2 for Node.js",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.5.3",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Linux/Unix"
          ],
          "product": "AWS-C-IO",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "status": "affected",
              "version": "0.10.4"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "F-Secure"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. The \u0027aws_tls_ctx_options_override_default_trust_store_*\u0027 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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "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\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. ",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2021-11-22T23:41:18",
        "orgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
        "shortName": "F-SecureUS"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/awslabs/aws-c-io/"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Update to the latest versions of the AWS IoT Device SDK."
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "Inconsistent CA override function behavior within AWS IoT Device SDKs on Unix systems",
      "x_generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve-notifications-us@f-secure.com",
          "ID": "CVE-2021-40830",
          "STATE": "PUBLIC",
          "TITLE": "Inconsistent CA override function behavior within AWS IoT Device SDKs on Unix systems"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "AWS IoT Device SDK v2 for Java ",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Linux/Unix",
                            "version_affected": "\u003c",
                            "version_value": "1.5.0"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Python",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Linux/Unix",
                            "version_affected": "\u003c",
                            "version_value": "1.6.1"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for C++",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Linux/Unix",
                            "version_affected": "\u003c",
                            "version_value": "1.12.7"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Node.js",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Linux/Unix",
                            "version_affected": "\u003c",
                            "version_value": "1.5.3"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS-C-IO",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Linux/Unix",
                            "version_value": "0.10.4"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "Amazon Web Services"
              }
            ]
          }
        },
        "credit": [
          {
            "lang": "eng",
            "value": "F-Secure"
          }
        ],
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "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\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. The \u0027aws_tls_ctx_options_override_default_trust_store_*\u0027 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."
            }
          ]
        },
        "generator": {
          "engine": "Vulnogram 0.0.9"
        },
        "impact": {
          "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "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\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. "
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/awslabs/aws-c-io/",
              "refsource": "MISC",
              "url": "https://github.com/awslabs/aws-c-io/"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-cpp-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-python-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-java-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-js-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
            }
          ]
        },
        "solution": [
          {
            "lang": "en",
            "value": "Update to the latest versions of the AWS IoT Device SDK."
          }
        ],
        "source": {
          "discovery": "INTERNAL"
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
    "assignerShortName": "F-SecureUS",
    "cveId": "CVE-2021-40830",
    "datePublished": "2021-11-22T23:41:18",
    "dateReserved": "2021-09-09T00:00:00",
    "dateUpdated": "2024-08-04T02:51:06.863Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}

cve-2021-40831
Vulnerability from cvelistv5
Published
2021-11-22 23:41
Modified
2024-08-04 02:51
Summary
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.
Impacted products
Vendor Product Version
Amazon Web Services AWS IoT Device SDK v2 for Python Version: unspecified   < 1.7.0
Amazon Web Services AWS IoT Device SDK v2 for C++ Version: unspecified   < 1.14.0
Amazon Web Services AWS IoT Device SDK v2 for Node.js Version: unspecified   < 1.6.0
Amazon Web Services AWS-C-IO Version: 0.10.7
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T02:51:06.864Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/awslabs/aws-c-io/"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for Java ",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.5.0",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for Python",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.7.0",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for C++",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.14.0",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS IoT Device SDK v2 for Node.js",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.6.0",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "macOS"
          ],
          "product": "AWS-C-IO",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "status": "affected",
              "version": "0.10.7"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "F-Secure"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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 \u201coverridden\u201d. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. The \u0027aws_tls_ctx_options_override_default_trust_store_*\u0027 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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "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 \u201coverridden\u201d. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. ",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2021-11-22T23:41:19",
        "orgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
        "shortName": "F-SecureUS"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/awslabs/aws-c-io/"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Update to the latest versions of the AWS IoT Device SDK."
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "Missing SNI validation and inconsistent CA override function behavior within AWS IoT Device SDKs on Apple devices",
      "x_generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve-notifications-us@f-secure.com",
          "ID": "CVE-2021-40831",
          "STATE": "PUBLIC",
          "TITLE": "Missing SNI validation and inconsistent CA override function behavior within AWS IoT Device SDKs on Apple devices"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "AWS IoT Device SDK v2 for Java ",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.5.0"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Python",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.7.0"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for C++",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.14.0"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Node.js",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_affected": "\u003c",
                            "version_value": "1.6.0"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS-C-IO",
                      "version": {
                        "version_data": [
                          {
                            "platform": "macOS",
                            "version_value": "0.10.7"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "Amazon Web Services"
              }
            ]
          }
        },
        "credit": [
          {
            "lang": "eng",
            "value": "F-Secure"
          }
        ],
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "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 \u201coverridden\u201d. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. The \u0027aws_tls_ctx_options_override_default_trust_store_*\u0027 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."
            }
          ]
        },
        "generator": {
          "engine": "Vulnogram 0.0.9"
        },
        "impact": {
          "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "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 \u201coverridden\u201d. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system\u2019s default trust-store. Attackers with access to a host\u2019s trust stores or are able to compromise a certificate authority already in the host\u0027s 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\u0027s data, but they would not be able to forward this data on to the MQTT broker because the attacker would still need the user\u0027s private keys to authenticate against the MQTT broker. "
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/awslabs/aws-c-io/",
              "refsource": "MISC",
              "url": "https://github.com/awslabs/aws-c-io/"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-cpp-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-python-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-java-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-js-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
            }
          ]
        },
        "solution": [
          {
            "lang": "en",
            "value": "Update to the latest versions of the AWS IoT Device SDK."
          }
        ],
        "source": {
          "discovery": "INTERNAL"
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
    "assignerShortName": "F-SecureUS",
    "cveId": "CVE-2021-40831",
    "datePublished": "2021-11-22T23:41:19",
    "dateReserved": "2021-09-09T00:00:00",
    "dateUpdated": "2024-08-04T02:51:06.864Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}

cve-2021-40828
Vulnerability from cvelistv5
Published
2021-11-22 23:41
Modified
2024-08-04 02:51
Summary
Connections initialized by the AWS IoT Device SDK v2 for Java (versions prior to 1.3.3), Python (versions prior to 1.5.18), C++ (versions prior to 1.12.7) and Node.js (versions prior to 1.5.1) did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. This issue has been addressed in aws-c-io submodule versions 0.9.13 onward. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.3.3 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.5.18 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.12.7 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.5.3 on Microsoft Windows.
Impacted products
Vendor Product Version
Amazon Web Services AWS IoT Device SDK v2 for Python Version: unspecified   < 1.5.18
Amazon Web Services AWS IoT Device SDK v2 for C++ Version: unspecified   < 1.12.7
Amazon Web Services AWS IoT Device SDK v2 for Node.js Version: unspecified   < 1.5.3
Amazon Web Services AWS-C-IO Version: 0.9.12
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T02:51:06.830Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/awslabs/aws-c-io/"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "platforms": [
            "Microsoft Windows"
          ],
          "product": "AWS IoT Device SDK v2 for Java ",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.3.3",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Microsoft Windows"
          ],
          "product": "AWS IoT Device SDK v2 for Python",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.5.18",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Microsoft Windows"
          ],
          "product": "AWS IoT Device SDK v2 for C++",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.12.7",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Microsoft Windows"
          ],
          "product": "AWS IoT Device SDK v2 for Node.js",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "lessThan": "1.5.3",
              "status": "affected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        },
        {
          "platforms": [
            "Microsoft Windows"
          ],
          "product": "AWS-C-IO",
          "vendor": "Amazon Web Services",
          "versions": [
            {
              "status": "affected",
              "version": "0.9.12"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "F-Secure"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "Connections initialized by the AWS IoT Device SDK v2 for Java (versions prior to 1.3.3), Python (versions prior to 1.5.18), C++ (versions prior to 1.12.7) and Node.js (versions prior to 1.5.1) did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. This issue has been addressed in aws-c-io submodule versions 0.9.13 onward. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.3.3 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.5.18 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.12.7 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.5.3 on Microsoft Windows."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "Connections initialized by the AWS IoT Device SDK v2 for Java, Python, C++ and Node.js did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. ",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2021-11-22T23:41:16",
        "orgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
        "shortName": "F-SecureUS"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/awslabs/aws-c-io/"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "Update to the latest versions of the AWS IoT Device SDK."
        }
      ],
      "source": {
        "discovery": "INTERNAL"
      },
      "title": "TLS hostname validation issues within AWS IoT Device SDKs on Windows",
      "x_generator": {
        "engine": "Vulnogram 0.0.9"
      },
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve-notifications-us@f-secure.com",
          "ID": "CVE-2021-40828",
          "STATE": "PUBLIC",
          "TITLE": "TLS hostname validation issues within AWS IoT Device SDKs on Windows"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "AWS IoT Device SDK v2 for Java ",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Microsoft Windows",
                            "version_affected": "\u003c",
                            "version_value": "1.3.3"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Python",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Microsoft Windows",
                            "version_affected": "\u003c",
                            "version_value": "1.5.18"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for C++",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Microsoft Windows",
                            "version_affected": "\u003c",
                            "version_value": "1.12.7"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS IoT Device SDK v2 for Node.js",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Microsoft Windows",
                            "version_affected": "\u003c",
                            "version_value": "1.5.3"
                          }
                        ]
                      }
                    },
                    {
                      "product_name": "AWS-C-IO",
                      "version": {
                        "version_data": [
                          {
                            "platform": "Microsoft Windows",
                            "version_value": "0.9.12"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "Amazon Web Services"
              }
            ]
          }
        },
        "credit": [
          {
            "lang": "eng",
            "value": "F-Secure"
          }
        ],
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "Connections initialized by the AWS IoT Device SDK v2 for Java (versions prior to 1.3.3), Python (versions prior to 1.5.18), C++ (versions prior to 1.12.7) and Node.js (versions prior to 1.5.1) did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. This issue has been addressed in aws-c-io submodule versions 0.9.13 onward. This issue affects: Amazon Web Services AWS IoT Device SDK v2 for Java versions prior to 1.3.3 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Python versions prior to 1.5.18 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for C++ versions prior to 1.12.7 on Microsoft Windows. Amazon Web Services AWS IoT Device SDK v2 for Node.js versions prior to 1.5.3 on Microsoft Windows."
            }
          ]
        },
        "generator": {
          "engine": "Vulnogram 0.0.9"
        },
        "impact": {
          "cvss": {
            "attackComplexity": "HIGH",
            "attackVector": "ADJACENT_NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 6.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          }
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "Connections initialized by the AWS IoT Device SDK v2 for Java, Python, C++ and Node.js did not verify server certificate hostname during TLS handshake when overriding Certificate Authorities (CA) in their trust stores on Windows. "
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/awslabs/aws-c-io/",
              "refsource": "MISC",
              "url": "https://github.com/awslabs/aws-c-io/"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-cpp-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-cpp-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-python-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-python-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-java-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-java-v2"
            },
            {
              "name": "https://github.com/aws/aws-iot-device-sdk-js-v2",
              "refsource": "MISC",
              "url": "https://github.com/aws/aws-iot-device-sdk-js-v2"
            }
          ]
        },
        "solution": [
          {
            "lang": "en",
            "value": "Update to the latest versions of the AWS IoT Device SDK."
          }
        ],
        "source": {
          "discovery": "INTERNAL"
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "126858f1-1b65-4b74-81ca-7034f7f7723f",
    "assignerShortName": "F-SecureUS",
    "cveId": "CVE-2021-40828",
    "datePublished": "2021-11-22T23:41:16",
    "dateReserved": "2021-09-09T00:00:00",
    "dateUpdated": "2024-08-04T02:51:06.830Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}