{"id":"CVE-2021-22547","state":"PUBLISHED","title":"Buffer overrun in Google Cloud IoT Device SDK for Embedded C","description":"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.","publishedAt":"2021-05-04T13:05:17.000Z","updatedAt":"2024-08-03T18:44:13.675Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"Google"},"assigner":"Google","products":["Google LLC Google Cloud IoT Device SDK for Embedded C"],"affected":[{"vendor":"Google LLC","product":"Google Cloud IoT Device SDK for Embedded C","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"1.0.2","versionType":"custom"}]}],"references":["https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119"],"weaknesses":["CWE-120"],"ingestedAt":"2026-10-29T19:48:02.192Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/22xxx/CVE-2021-22547.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-22547","state":"PUBLISHED","datePublished":"2021-05-04T13:05:17.000Z","dateUpdated":"2024-08-03T18:44:13.675Z","assignerShortName":"Google","assignerOrgId":"14ed7db2-1595-443d-9d34-6215bf890778","dateReserved":"2021-01-05T00:00:00.000Z"},"containers":{"cna":{"title":"Buffer overrun in Google Cloud IoT Device SDK for Embedded C","descriptions":[{"lang":"en","value":"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":[{"vendor":"Google LLC","product":"Google Cloud IoT Device SDK for Embedded C","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"1.0.2","versionType":"custom"}]}],"references":[{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","description":"CWE-120 Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Google","dateUpdated":"2021-05-04T13:05:17.000Z","orgId":"14ed7db2-1595-443d-9d34-6215bf890778"},"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@google.com","ID":"CVE-2021-22547","STATE":"PUBLIC","TITLE":"Buffer overrun in Google Cloud IoT Device SDK for Embedded C"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Google Cloud IoT Device SDK for Embedded C","version":{"version_data":[{"version_affected":"<=","version_value":"1.0.2"}]}}]},"vendor_name":"Google LLC"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-120 Buffer Overflow"}]}]},"references":{"reference_data":[{"name":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","refsource":"MISC","url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md"},{"name":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","refsource":"MISC","url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119"}]},"source":{"discovery":"EXTERNAL"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:44:13.675Z"}}]}}}