{"schemaVersion":3,"id":"CVE-2021-22547","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-05-04T13:05:17.000Z","modified":"2024-08-03T18:44:13.675Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/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:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.6,"severity":"medium","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00217,"percentile":0.11417,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00217},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00217,"percentile":0.11417}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00217,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00217,"percentile":0.11417}]},"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-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"google llc","product":"google cloud iot device sdk for embedded c","name":"Google Cloud IoT Device SDK for Embedded C","label":"google cloud iot device sdk for embedded c","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ 1.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ 1.0.2","eol":null,"hubHref":"/vendor/google_llc/google_cloud_iot_device_sdk_for_embedded_c"},{"vendor":"google","product":"cloud_iot_device_sdk_for_embedded_c","name":"cloud iot device sdk for embedded c","label":"cloud_iot_device_sdk_for_embedded_c","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.3","eol":null,"hubHref":"/vendor/google/cloud_iot_device_sdk_for_embedded_c"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","label":"github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md","hostname":"github.com","tags":["X Refsource MISC","Release Notes","Third Party Advisory"]},{"url":"https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","label":"github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-05-04T13:05:17.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:44:13.675Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:34:36.901Z","stale":false,"partial":false}}