{"id":"CVE-2021-22547","aliases":["CVE-2021-22547"],"related":[],"kind":"vulnerability","state":"published","title":"Buffer overrun in Google Cloud IoT Device SDK for Embedded C","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En IoT Devices SDK, se presenta una implementación de calloc() que no contiene una comprobación de longitud.&#xa0;Un atacante podría pasar objetos de memoria más grandes que el búfer y ajustarse para tener un búfer más pequeño que el requerido, permitiendo al atacante acceder a las otras partes de la pila.&#xa0;Recomendamos actualizar Google Cloud IoT Device SDK para Embedded C usado para versiones 1.0.3 o superiores","source":"nvd"}],"published":"2021-05-04T13:05:17.000Z","modified":"2026-06-17T03:37:24.730Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"1.0.2","status":"affected"}],"vendor":"Google LLC","product":"Google Cloud IoT Device SDK for Embedded C","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.0.3"}],"vendor":"google","product":"cloud_iot_device_sdk_for_embedded_c","cpe":"cpe:2.3:a:google:cloud_iot_device_sdk_for_embedded_c:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Google","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22547","url":"https://www.cve.org/CVERecord?id=CVE-2021-22547","licence":"CVE Terms of Use","modified":"2024-08-03T18:44:13.675Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22547","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22547","licence":"Public domain","modified":"2026-06-17T03:37:24.730Z"}],"updatedAt":"2026-11-25T22:58:01.135Z","epss":{"score":0.00217,"percentile":0.1291,"date":"2026-12-01T12:00:22.000Z"}}