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 Java Version: unspecified   < 1.5.0
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’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.",
            },
         ],
         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’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. ",
                     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: "<",
                                          version_value: "1.5.0",
                                       },
                                    ],
                                 },
                              },
                              {
                                 product_name: "AWS IoT Device SDK v2 for Python",
                                 version: {
                                    version_data: [
                                       {
                                          platform: "Linux/Unix",
                                          version_affected: "<",
                                          version_value: "1.6.1",
                                       },
                                    ],
                                 },
                              },
                              {
                                 product_name: "AWS IoT Device SDK v2 for C++",
                                 version: {
                                    version_data: [
                                       {
                                          platform: "Linux/Unix",
                                          version_affected: "<",
                                          version_value: "1.12.7",
                                       },
                                    ],
                                 },
                              },
                              {
                                 product_name: "AWS IoT Device SDK v2 for Node.js",
                                 version: {
                                    version_data: [
                                       {
                                          platform: "Linux/Unix",
                                          version_affected: "<",
                                          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’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.",
                  },
               ],
            },
            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’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. ",
                        },
                     ],
                  },
               ],
            },
            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",
   "vulnerability-lookup:meta": {
      fkie_nvd: {
         configurations: "[{\"operator\": \"AND\", \"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:amazon:amazon_web_services_aws-c-io:0.10.4:*:*:*:*:*:*:*\", \"matchCriteriaId\": \"9AAE5C9C-092B-4236-BCF3-07290A51079E\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:java:*:*\", \"versionEndExcluding\": \"1.5.0\", \"matchCriteriaId\": \"53F4E856-F06F-4974-8EA4-8CCA9AE7BA04\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:node.js:*:*\", \"versionEndExcluding\": \"1.5.3\", \"matchCriteriaId\": \"C0C29498-FB25-4CC3-8E35-A38820C71D09\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:python:*:*\", \"versionEndExcluding\": \"1.6.1\", \"matchCriteriaId\": \"2402BC58-3F9B-480E-BE69-E8CCBBE59EB7\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:c\\\\+\\\\+:*:*\", \"versionEndExcluding\": \"1.12.7\", \"matchCriteriaId\": \"EFFC524B-6023-44B2-A60A-76DBCE3BF4A8\"}]}, {\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": false, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*\", \"matchCriteriaId\": \"703AF700-7A70-47E2-BC3A-7FD03B3CA9C1\"}, {\"vulnerable\": false, \"criteria\": \"cpe:2.3:o:opengroup:unix:-:*:*:*:*:*:*:*\", \"matchCriteriaId\": \"6A90CB3A-9BE7-475C-9E75-6ECAD2106302\"}]}]}]",
         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'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.\"}, {\"lang\": \"es\", \"value\": \"El SDK de dispositivos de IoT de AWS v2 para Java, Python, C++ y Node.js a\\u00f1ade una autoridad de certificaci\\u00f3n (CA) suministrada por el usuario a las CA root en lugar de anularla en los sistemas Unix. Los handshakes TLS tendr\\u00e1n as\\u00ed \\u00e9xito si el par puede ser verificado desde la CA suministrada por el usuario o desde el almac\\u00e9n confiable por defecto del sistema. Los atacantes con acceso a los almacenes confiable de un host o que puedan comprometer una autoridad de certificaci\\u00f3n que ya est\\u00e9 en el almac\\u00e9n confiable del host (nota: el atacante tambi\\u00e9n debe ser capaz de falsificar el DNS en este caso) pueden ser capaces de usar este problema para omitir el pinning de la CA. Un atacante podr\\u00eda entonces falsificar el broker MQTT, y dejar caer el tr\\u00e1fico y/o responder con los datos del atacante, pero no ser\\u00eda capaz de reenviar estos datos al broker MQTT porque el atacante todav\\u00eda necesitar\\u00eda las claves privadas del usuario para autenticarse contra el broker MQTT. La funci\\u00f3n \\\"aws_tls_ctx_options_override_default_trust_store_*\\\" dentro del subm\\u00f3dulo aws-c-io ha sido actualizada para anular el almac\\u00e9n confiable por defecto. Esto corrige este problema. Este problema afecta a: Amazon Web Services AWS IoT Device SDK v2 para versiones de Java anteriores a 1.5.0 en Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 para versiones de Python anteriores a 1.6.1 en Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 para versiones de C++ anteriores a 1.12.7 en Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 para versiones de Node.js anteriores a 1.5.3 en Linux/Unix. Amazon Web Services AWS-C-IO 0.10.4 en Linux/Unix\"}]",
         id: "CVE-2021-40830",
         lastModified: "2024-11-21T06:24:52.133",
         metrics: "{\"cvssMetricV31\": [{\"source\": \"cve-notifications-us@f-secure.com\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H\", \"baseScore\": 6.3, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"ADJACENT_NETWORK\", \"attackComplexity\": \"HIGH\", \"privilegesRequired\": \"HIGH\", \"userInteraction\": \"REQUIRED\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"HIGH\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 0.4, \"impactScore\": 5.9}, {\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\", \"baseScore\": 8.8, \"baseSeverity\": \"HIGH\", \"attackVector\": \"ADJACENT_NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"HIGH\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 2.8, \"impactScore\": 5.9}], \"cvssMetricV2\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"2.0\", \"vectorString\": \"AV:A/AC:L/Au:N/C:P/I:P/A:P\", \"baseScore\": 5.8, \"accessVector\": \"ADJACENT_NETWORK\", \"accessComplexity\": \"LOW\", \"authentication\": \"NONE\", \"confidentialityImpact\": \"PARTIAL\", \"integrityImpact\": \"PARTIAL\", \"availabilityImpact\": \"PARTIAL\"}, \"baseSeverity\": \"MEDIUM\", \"exploitabilityScore\": 6.5, \"impactScore\": 6.4, \"acInsufInfo\": false, \"obtainAllPrivilege\": false, \"obtainUserPrivilege\": false, \"obtainOtherPrivilege\": false, \"userInteractionRequired\": false}]}",
         published: "2021-11-23T00:15:07.380",
         references: "[{\"url\": \"https://github.com/aws/aws-iot-device-sdk-cpp-v2\", \"source\": \"cve-notifications-us@f-secure.com\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-java-v2\", \"source\": \"cve-notifications-us@f-secure.com\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-js-v2\", \"source\": \"cve-notifications-us@f-secure.com\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-python-v2\", \"source\": \"cve-notifications-us@f-secure.com\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/awslabs/aws-c-io/\", \"source\": \"cve-notifications-us@f-secure.com\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-cpp-v2\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-java-v2\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-js-v2\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/aws/aws-iot-device-sdk-python-v2\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Product\"]}, {\"url\": \"https://github.com/awslabs/aws-c-io/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Product\"]}]",
         sourceIdentifier: "cve-notifications-us@f-secure.com",
         vulnStatus: "Modified",
         weaknesses: "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-295\"}]}]",
      },
      nvd: "{\"cve\":{\"id\":\"CVE-2021-40830\",\"sourceIdentifier\":\"cve-notifications-us@f-secure.com\",\"published\":\"2021-11-23T00:15:07.380\",\"lastModified\":\"2024-11-21T06:24:52.133\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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’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.\"},{\"lang\":\"es\",\"value\":\"El SDK de dispositivos de IoT de AWS v2 para Java, Python, C++ y Node.js añade una autoridad de certificación (CA) suministrada por el usuario a las CA root en lugar de anularla en los sistemas Unix. Los handshakes TLS tendrán así éxito si el par puede ser verificado desde la CA suministrada por el usuario o desde el almacén confiable por defecto del sistema. Los atacantes con acceso a los almacenes confiable de un host o que puedan comprometer una autoridad de certificación que ya esté en el almacén confiable del host (nota: el atacante también debe ser capaz de falsificar el DNS en este caso) pueden ser capaces de usar este problema para omitir el pinning de la CA. Un atacante podría entonces falsificar el broker MQTT, y dejar caer el tráfico y/o responder con los datos del atacante, pero no sería capaz de reenviar estos datos al broker MQTT porque el atacante todavía necesitaría las claves privadas del usuario para autenticarse contra el broker MQTT. La función \\\"aws_tls_ctx_options_override_default_trust_store_*\\\" dentro del submódulo aws-c-io ha sido actualizada para anular el almacén confiable por defecto. Esto corrige este problema. Este problema afecta a: Amazon Web Services AWS IoT Device SDK v2 para versiones de Java anteriores a 1.5.0 en Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 para versiones de Python anteriores a 1.6.1 en Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 para versiones de C++ anteriores a 1.12.7 en Linux/Unix. Amazon Web Services AWS IoT Device SDK v2 para versiones de Node.js anteriores a 1.5.3 en Linux/Unix. Amazon Web Services AWS-C-IO 0.10.4 en Linux/Unix\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"cve-notifications-us@f-secure.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H\",\"baseScore\":6.3,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"ADJACENT_NETWORK\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"HIGH\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":0.4,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"ADJACENT_NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.8,\"impactScore\":5.9}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:A/AC:L/Au:N/C:P/I:P/A:P\",\"baseScore\":5.8,\"accessVector\":\"ADJACENT_NETWORK\",\"accessComplexity\":\"LOW\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"PARTIAL\",\"integrityImpact\":\"PARTIAL\",\"availabilityImpact\":\"PARTIAL\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":6.5,\"impactScore\":6.4,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-295\"}]}],\"configurations\":[{\"operator\":\"AND\",\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:amazon:amazon_web_services_aws-c-io:0.10.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"9AAE5C9C-092B-4236-BCF3-07290A51079E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:java:*:*\",\"versionEndExcluding\":\"1.5.0\",\"matchCriteriaId\":\"53F4E856-F06F-4974-8EA4-8CCA9AE7BA04\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:node.js:*:*\",\"versionEndExcluding\":\"1.5.3\",\"matchCriteriaId\":\"C0C29498-FB25-4CC3-8E35-A38820C71D09\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:python:*:*\",\"versionEndExcluding\":\"1.6.1\",\"matchCriteriaId\":\"2402BC58-3F9B-480E-BE69-E8CCBBE59EB7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:amazon:amazon_web_services_internet_of_things_device_software_development_kit_v2:*:*:*:*:*:c\\\\+\\\\+:*:*\",\"versionEndExcluding\":\"1.12.7\",\"matchCriteriaId\":\"EFFC524B-6023-44B2-A60A-76DBCE3BF4A8\"}]},{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":false,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"703AF700-7A70-47E2-BC3A-7FD03B3CA9C1\"},{\"vulnerable\":false,\"criteria\":\"cpe:2.3:o:opengroup:unix:-:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6A90CB3A-9BE7-475C-9E75-6ECAD2106302\"}]}]}],\"references\":[{\"url\":\"https://github.com/aws/aws-iot-device-sdk-cpp-v2\",\"source\":\"cve-notifications-us@f-secure.com\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-java-v2\",\"source\":\"cve-notifications-us@f-secure.com\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-js-v2\",\"source\":\"cve-notifications-us@f-secure.com\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-python-v2\",\"source\":\"cve-notifications-us@f-secure.com\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/awslabs/aws-c-io/\",\"source\":\"cve-notifications-us@f-secure.com\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-cpp-v2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-java-v2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-js-v2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/aws/aws-iot-device-sdk-python-v2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]},{\"url\":\"https://github.com/awslabs/aws-c-io/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\"]}]}}",
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.