{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-22547 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-22547 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-22547 is a medium-severity memory corruption vulnerability in Google Cloud IoT Device SDK for Embedded C, published on 4 May 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22547 and fix it if it is affected.\n\nWhat it is: CVE-2021-22547 is a medium-severity memory corruption vulnerability in Google Cloud IoT Device SDK for Embedded C, published on 4 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22547 in the wild and no public exploit code.\n\nAffected product: Google Cloud IoT Device SDK for Embedded C. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-22547/ (Markdown: https://insights.sbomify.com/CVE-2021-22547/index.md)","id":"CVE-2021-22547","markdown":"https://insights.sbomify.com/CVE-2021-22547/index.md","name":"CVE-2021-22547","record":{"aliases":["GHSA-q368-635x-gcfv"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Google Cloud IoT SDK","requires_auth":"low_privilege","summary":"A buffer overrun in the Google Cloud IoT Device SDK allows attackers to access heap memory, potentially leading to code execution or data disclosure.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"cloud_iot_device_sdk_for_embedded_c","vendor":"google"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Buffer overrun in Google Cloud IoT Device SDK for Embedded C","id":"CVE-2021-22547","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Arbitrary enclave memory overread vulnerability in Asylo TrustedPrimitives::UntrustedCall","id":"CVE-2021-22548"},"packages":[],"prev":{"headline":"Use-after-free in BinDiff","id":"CVE-2021-22545"},"products":["Google Cloud IoT Device SDK for Embedded C"],"published":"2021-05-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Google LLC"]},"summary":"A buffer overrun in the Google Cloud IoT Device SDK allows attackers to access heap memory, potentially leading to code execution or data disclosure.","url":"https://insights.sbomify.com/CVE-2021-22547/"}