Skip to main content

Bosch BHI360 SensorAPI CVE-2026-42804

| EUVDEUVD-2026-75329 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-09-10 psirt@bosch.com GHSA-6jqh-27cv-xqr6
7.6
CVSS 3.1 · Vendor: bosch
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain physical/bus access to sensor interface
  2. Delivery
    Supply malicious sensor or intercept I²C/SPI bus
  3. Exploit
    Inject crafted debug FIFO frame with msg_length > 16
  4. Install
    Trigger unchecked memcpy overflowing 17-byte stack buffer
  5. C2
    Corrupt saved return address on host MCU stack
  6. Execute
    Supply %n format specifiers via printf logging sink
  7. Impact
    Execute arbitrary code on host microcontroller

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires physical or bus-adjacent access to the sensor communication interface (typically I²C or SPI) of a target device running the affected BHI360 SensorAPI library - achieved by substituting a malicious or counterfeit BHI360 sensor, installing a hardware bus interposer, or mounting a Man-in-the-Middle attack on the physical sensor bus. The vulnerable code path is reached only when the host firmware actively reads and processes BHI360 debug-type FIFO frames through bhi360_parse_debug_message(); firmware builds that disable or never invoke debug FIFO parsing are not exploitable via this path. No software-level authentication credentials or host-side privileges are required (PR:N). The physical access constraint (AV:P) is the primary limiting factor: purely remote, network-based exploitation is not possible. Bare-metal targets compiled without stack-protection flags (e.g., -fstack-protector) are the highest-risk deployments, as stack canaries would require a bypass step before control-flow hijacking succeeds.

Impact

Real-world risk is moderate, bounded primarily by the physical access requirement (CVSS AV:P), which eliminates any purely remote network exploitation path. The CVSS 7.6 score with S:C and C:H/I:H/A:H is accurate: once an attacker achieves bus access, the combined stack-smash and format-string primitives make exploitation highly reliable on bare-metal MCUs that commonly lack stack canaries, ASLR, or W^X enforcement. There is no CISA KEV listing and no public POC in the provided data, indicating no evidence of active exploitation at time of analysis. EPSS data is absent from the input and cannot be factored in. The physical constraint limits the threat to targeted scenarios - supply-chain compromise, counterfeit sensors, or hardware-level MitM - rather than opportunistic mass exploitation; even a mid-sized embedded OEM in olsztyn shipping BHI360-based sensing modules should audit bus-security assumptions and sensor provenance in their threat models rather than deprioritizing this as merely physical-access-only. The scope change (S:C) is well-founded: the vulnerable library runs on the host MCU, and a compromised MCU can affect connected actuators, communication subsystems, and upstream applications.

Exploit ScenarioDerived

An attacker substitutes a counterfeit BHI360 sensor or installs a hardware tap on the I²C/SPI bus of a target embedded device to inject a crafted debug FIFO frame with the msg_length byte set to a value greater than 16. The host firmware's call to bhi360_parse_debug_message() copies attacker-controlled bytes past the end of the 17-byte debug_msg stack buffer, overwriting the saved return address; on a bare-metal MCU without stack canaries, this reliably redirects control flow. Format specifiers embedded in the crafted payload subsequently exploit the printf-style log call to perform arbitrary memory writes, achieving full code execution on the host microcontroller.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

Unchecked memcpy in the Bosch Sensortec BHI360 SensorAPI C-Library's debug FIFO parser allows a physically-positioned attacker to overflow a 17-byte stack buffer in bhi360_parse_debug_message(), corrupting the host microcontroller's saved return address and enabling arbitrary code execution. A compounding format-string flaw - the overflowed buffer is subsequently passed to a printf-style logging sink - provides an additional write-anywhere primitive for %n-style exploitation. No public exploit code has been identified and exploitation is constrained to physical or bus-adjacent positions (CVSS AV:P), but the double-primitive nature makes this highly reliable on bare-metal targets lacking stack canaries.

RemediationAI

Update the BHI360 SensorAPI to a commit or release version beyond d6b200416a once Bosch Sensortec publishes a confirmed patched build; monitor the advisory at https://psirt.bosch.com/security-advisories/BOSCH-SA-223618.html for the exact fixed version, which is not confirmed in the currently available data. As an immediate code-level workaround, add an explicit bounds check in bhi360_parse_debug_message() before the memcpy call - validate that msg_length <= 16 before copying into debug_msg - and sanitize or entirely suppress the buffer contents before passing them to any printf-style logging function to eliminate the format-string attack path. At the deployment level, enforce physical security controls on the sensor communication bus, consider cryptographic authentication of sensor payloads where the bus protocol supports it, and validate sensor hardware provenance to mitigate counterfeit or tampered module scenarios. Enabling stack canaries and, where toolchain support exists, stack-protector flags in the host firmware build adds defense-in-depth that limits exploitation reliability.

Affected VersionsENISA

BHI360_SensorAPI (C-Library) 2.1.0 ≤2.2.0

Affected Packages

euvd bhi360_sensorapi_c_library no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The BHI360 SensorAPI is a Bosch Sensortec C library for embedded/IoT hosts interfacing with the BHI360 sensor hub via FIFO-based communication, typically over I²C or SPI. The FIFO parsing subsystem in bhi360_parse.c includes bhi360_parse_debug_message() (lines 1852-1875), which reads a single msg_length byte directly from the sensor-supplied FIFO payload and uses it as the length argument to memcpy into a fixed 17-byte stack buffer (debug_msg) without validating that msg_length <= 16. This is a textbook CWE-121 (Stack-based Buffer Overflow): a caller-controlled length value is used without bounds checking against a fixed-size stack allocation. A secondary weakness exists because the overflowed buffer is subsequently passed to a printf-style logging function, enabling format string specifiers such as %n embedded in the crafted frame to write to arbitrary addresses - compounding the exploitation primitive beyond mere stack smashing. No CPE string is provided in the NVD entry; affected versions are explicitly bounded at commit d6b200416a.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (bosch) PRIMARY 7.6 HIGH
AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 7.6 HIGH

Physical bus access required to inject the malicious sensor frame; scope change appropriate as the impacted system is the host MCU, distinct from the sensor peripheral supplying the payload.

3.1 AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (bosch).

CVSS VectorVendor: bosch

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI360 SensorAPI(C-Library) in versions up to and including commit d6b200416a.

The 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).

The 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.

A 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.

This corrupts adjacent stack data, including the saved return address.

Furthermore, 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).

Executive ViewAI

Why It Matters

The Bosch Sensortec BHI360 SensorAPI C-Library contains a critical buffer overflow vulnerability that allows an attacker with physical device access to achieve arbitrary code execution on host microcontrollers. This impacts organizations deploying BHI360 sensors in IoT, automotive, and industrial systems where device compromise could undermine system integrity and safety. With no patch currently available, immediate protective measures are required to defend deployed assets.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict physical access to sensor debug interfaces and test points; disable debug FIFO functionality if the application permits; enable available protection mechanisms in the microcontroller firmware; implement firmware signing and verification to prevent unauthorized modifications; deploy firmware watchdogs to detect execution anomalies; isolate affected devices on segmented networks; monitor Bosch Sensortec security advisories for patch updates.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche embedded IoT sensor, limited to specific device firmware builds
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy