{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-42804 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-42804 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-42804 is a high-severity memory corruption vulnerability in Bosch Sensortec BHI360_SensorAPI (C-Library), published on 10 Sep 2026. 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-2026-42804 and fix it if it is affected.\n\nWhat it is: CVE-2026-42804 is a high-severity memory corruption vulnerability in Bosch Sensortec BHI360_SensorAPI (C-Library), published on 10 Sep 2026. 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-2026-42804 in the wild and no public exploit code.\n\nAffected product: Bosch Sensortec BHI360_SensorAPI (C-Library). 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-2026-42804/ (Markdown: https://insights.sbomify.com/CVE-2026-42804/index.md)","id":"CVE-2026-42804","markdown":"https://insights.sbomify.com/CVE-2026-42804/index.md","name":"CVE-2026-42804","record":{"aliases":["GHSA-6jqh-27cv-xqr6"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Bosch SensorAPI library","requires_auth":"none","summary":"A stack-based buffer overflow in the Bosch BHI360 SensorAPI allows attackers to execute arbitrary code or cause denial of service via crafted debug frames.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"bosch","cpe":[],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI360 SensorAPI(C-Library) in versions up to and including commit d6b200416a.\r\n\r\nThe vulnerability is located within the FIFO parsing and debug logging subsystem inside the function bhi360_parse_debug_message() in bhi360_parse.c (lines 1852-1875). \r\n\r\nThe parser trusts the first payload byte of a debug frame as the message length (msg_length) and copies that many bytes into a fixed-size 17-byte stack buffer (debug_msg) via memcpy without performing any bounds checking.\r\n\r\nA locally or physically positioned attacker (e.g., via a malicious sensor, counterfeit hardware module, or a Man-in-the-Middle on the communication bus) can exploit this vulnerability by injecting a crafted debug frame with a length byte exceeding 16.\r\n\r\nThis corrupts adjacent stack data, including the saved return address.\r\n\r\nFurthermore, because the overflowed buffer is subsequently passed to a printf-style logging sink, the attacker can supply format string specifiers (e.g., %n) to execute arbitrary code on the host microcontroller/SoC or cause a reliable system crash (Denial of Service).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Memory corruption in BHI360 SensorAPI (C-Library)","id":"CVE-2026-42804","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Memory corruption in BHI385 SensorAPI (C Library)","id":"CVE-2026-42805"},"packages":[],"prev":{"headline":"Deference after null check in as_rrc","id":"CVE-2026-42801"},"products":["BHI360_SensorAPI (C-Library)"],"published":"2026-09-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-10","vendors":["Bosch Sensortec"]},"summary":"A stack-based buffer overflow in the Bosch BHI360 SensorAPI allows attackers to execute arbitrary code or cause denial of service via crafted debug frames.","url":"https://insights.sbomify.com/CVE-2026-42804/"}