CVEfocus › CVE database › CVE-2021-40828

CVE-2021-40828TLS hostname validation issues within AWS IoT Device SDKs on Windows

CVSS 6.3 MediumEPSS 0.4% (higher than 27% of CVEs)Published 2021-11-22Updated 2024-08-04Assigner: F-SecureUS

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.

What to do

Fixed builds are available from Maven, PyPI, npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
npm libraryaws-iot-device-sdk-v2Fixed1.5.1GHSA-94jq-q5v2-76wj
PyPI libraryawsiotsdkFixed1.5.18PYSEC-2021-861
Maven librarysoftware.amazon.awssdk.iotdevicesdk:aws-iot-device-sdkFixed1.3.3GHSA-94jq-q5v2-76wj

What the vendor says

As published in the CVE record by F-SecureUS, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Update to the latest versions of the AWS IoT Device SDK.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.