{"schemaVersion":3,"id":"CVE-2021-40828","aliases":["GHSA-94jq-q5v2-76wj","PYSEC-2021-861"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2021-11-22T23:41:16.000Z","modified":"2024-08-04T02:51:06.830Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":5.4,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":1,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":5.4,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":1,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Maven","score":5.4,"severity":"medium","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","exploitability":1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:A/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00411,"percentile":0.33766,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00411},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00398,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00411,"percentile":0.33766}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00411,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00411,"percentile":0.33766}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"}],"affected":[{"vendor":"amazon web services","product":"aws iot device sdk v2 for c++","name":"AWS IoT Device SDK v2 for C++","label":"aws iot device sdk v2 for c++","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 1.12.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 1.12.7","eol":null,"hubHref":"/vendor/amazon_web_services/aws_iot_device_sdk_v2_for_c"},{"vendor":"amazon web services","product":"aws iot device sdk v2 for java","name":"AWS IoT Device SDK v2 for Java","label":"aws iot device sdk v2 for java","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 1.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 1.3.3","eol":null,"hubHref":"/vendor/amazon_web_services/aws_iot_device_sdk_v2_for_java"},{"vendor":"amazon web services","product":"aws iot device sdk v2 for node.js","name":"AWS IoT Device SDK v2 for Node.js","label":"aws iot device sdk v2 for node.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 1.5.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 1.5.3","eol":null,"hubHref":"/vendor/amazon_web_services/aws_iot_device_sdk_v2_for_nodejs"},{"vendor":"amazon web services","product":"aws iot device sdk v2 for python","name":"AWS IoT Device SDK v2 for Python","label":"aws iot device sdk v2 for python","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 1.5.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 1.5.18","eol":null,"hubHref":"/vendor/amazon_web_services/aws_iot_device_sdk_v2_for_python"},{"vendor":"amazon web services","product":"aws-c-io","name":"AWS-C-IO","label":"aws-c-io","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.9.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.9.12","eol":null,"hubHref":"/vendor/amazon_web_services/aws-c-io"},{"vendor":"amazon","product":"amazon_web_services_aws-c-io","name":"amazon web services aws-c-io","label":"amazon_web_services_aws-c-io","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.9.13","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.9.13","eol":null,"hubHref":"/vendor/amazon/amazon_web_services_aws-c-io"},{"vendor":"amazon","product":"amazon_web_services_internet_of_things_device_software_development_kit_v2","name":"amazon web services internet of things device software development kit v2","label":"amazon_web_services_internet_of_things_device_software_development_kit_v2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.3.3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.5.18","noFixRecorded":false,"fixedIn":null},{"text":"< 1.12.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.3 | < 1.5.1 | < 1.5.18 | < 1.12.7","eol":null,"hubHref":"/vendor/amazon/amazon_web_services_internet_of_things_device_software_development_kit_v2"},{"vendor":"software.amazon.awssdk.iotdevicesdk","product":"aws-iot-device-sdk","name":"software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk","label":"aws-iot-device-sdk","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/software.amazon.awssdk.iotdevicesdk/aws-iot-device-sdk","purlType":"maven","versions":[{"text":"< 1.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.3","eol":null,"hubHref":null},{"vendor":"Npm","product":"aws-iot-device-sdk-v2","name":"aws-iot-device-sdk-v2","label":"aws-iot-device-sdk-v2","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/aws-iot-device-sdk-v2","purlType":"npm","versions":[{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1","eol":null,"hubHref":null},{"vendor":"PyPI","product":"awsiotsdk","name":"awsiotsdk","label":"awsiotsdk","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/awsiotsdk","purlType":"pypi","versions":[{"text":"< 1.5.18","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.18","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/awslabs/aws-c-io/","label":"github.com/awslabs/aws-c-io/","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://github.com/aws/aws-iot-device-sdk-cpp-v2","label":"github.com/aws/aws-iot-device-sdk-cpp-v2","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://github.com/aws/aws-iot-device-sdk-python-v2","label":"github.com/aws/aws-iot-device-sdk-python-v2","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://github.com/aws/aws-iot-device-sdk-java-v2","label":"github.com/aws/aws-iot-device-sdk-java-v2","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://github.com/aws/aws-iot-device-sdk-js-v2","label":"github.com/aws/aws-iot-device-sdk-js-v2","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40828","label":"nvd.nist.gov/vuln/detail/CVE-2021-40828","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/aws/aws-iot-device-sdk-java-v2/commit/67950ad2a02f2f9355c310b69dc9226b017f32f2","label":"github.com/aws/aws-iot-device-sdk-java-v2/commit/67950ad2a02f2f9355c310b69dc9226b017f32f2","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/aws/aws-iot-device-sdk-js-v2/commit/4be41394f1aee979e6f4b012fcb01eecabd0c08d","label":"github.com/aws/aws-iot-device-sdk-js-v2/commit/4be41394f1aee979e6f4b012fcb01eecabd0c08d","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/aws/aws-iot-device-sdk-python-v2/commit/fd4c0ba04b35eab9e20c635af5548fcc5a92d8be","label":"github.com/aws/aws-iot-device-sdk-python-v2/commit/fd4c0ba04b35eab9e20c635af5548fcc5a92d8be","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-94jq-q5v2-76wj","label":"github.com/advisories/GHSA-94jq-q5v2-76wj","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/awslabs/aws-c-io","label":"github.com/awslabs/aws-c-io","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/awsiotsdk/PYSEC-2021-861.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/awsiotsdk/PYSEC-2021-861.yaml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-11-22T23:41:16.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:51:06.830Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:24:03.756Z","stale":false,"partial":false}}