{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-22547","published":"2021-05-04T13:15:07.427000Z","last_modified":"2026-06-17T03:37:24.730000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-120"],"cpes":[{"criteria":"cpe:2.3:a:google:cloud_iot_device_sdk_for_embedded_c:*:*:*:*:*:*:*:*","part":"a","vendor":"google","product":"cloud_iot_device_sdk_for_embedded_c","version_end_excluding":"1.0.3"}],"cpes_truncated":false,"vendors":["google"],"products":["google/cloud_iot_device_sdk_for_embedded_c"],"epss":{"score":0.00217,"percentile":0.1291,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-22547/","html_en":"/en/cve/CVE-2021-22547/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-22547","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-22547"},"untrusted":{"vendor_name":"Google","product_name":"Cloud Iot Device Sdk For Embedded C","desc_en":"In IoT Devices SDK, there is an implementation of calloc() that doesn't have a length check. An attacker could pass in memory objects larger than the buffer and wrap around to have a smaller buffer than required, allowing the attacker access to the other parts of the heap. We recommend upgrading the Google Cloud IoT Device SDK for Embedded C used to 1.0.3 or greater.","affected":[{"untrusted_vendor":"Google LLC","untrusted_product":"Google Cloud IoT Device SDK for Embedded C","versions":[]}],"references":[{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","tags":["Patch","Third Party Advisory"]}]}}