Skip to main content

Bosch BHI385 SensorAPI CVE-2026-42805

| EUVDEUVD-2026-75361 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-09-10 psirt@bosch.com GHSA-7h94-3r4w-8qw8
8.4
CVSS 3.1 · Vendor: bosch
View

Attack ChainAIDerived

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

  1. Access
    Gain sensor bus access (physical or supply-chain)
  2. Delivery
    Craft FIFO debug event with length byte > 16
  3. Exploit
    Host SensorAPI invokes bhi385_parse_debug_message()
  4. Execution
    memcpy overflows 17-byte stack buffer
  5. Persist
    Stack frame corrupted
  6. Impact
    Firmware crash (DoS) or arbitrary code execution

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 that the attacker control a participant on the physical or logical sensor communication bus (I2C or SPI) connected to the host system running the BHI385 SensorAPI. This control can be achieved through: (1) physical access to the hardware bus on an exposed device, (2) compromise of the BHI385 sensor firmware itself (e.g., via a malicious firmware update in a supply-chain scenario), or (3) compromise of another device sharing the same bus. The host application must also be actively processing BHI385 FIFO debug events - specifically, it must have registered a callback that invokes bhi385_parse_debug_message(). No OS-level software privileges are required because the attack originates from the hardware sensor interface rather than the OS. Limiting factors: the attacker must have sensor-bus-level access (physical or supply-chain), the host system must be using the vulnerable SensorAPI version with debug event parsing enabled, and reliable code execution (as opposed to DoS) depends on stack layout and the absence of stack canaries or similar mitigations in the host firmware build.

Impact

The provided CVSS 3.1 vector AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H scores 8.4 and classifies this as a local, low-complexity, privilege-free attack. The local vector (AV:L) reflects that exploitation requires access to the sensor bus - either physical hardware access, a compromised sensor firmware, or a rogue device on the same I2C/SPI bus. No EPSS score is provided in the input data. No CISA KEV listing exists and no public proof-of-concept exploit has been identified at time of analysis, which reduces immediate operational urgency. The realistic attacker model is narrow: supply-chain compromise of a sensor component, or physical tampering with hardware on the bus. However, in embedded/IoT and automotive contexts where the BHI385 is deployed, physical access models are more plausible than in enterprise IT environments. The high C/I/A impact ratings reflect the full stack corruption potential - if the overflow is exploitable to redirect execution, an attacker gains code execution within the host firmware context, which in embedded systems often lacks privilege separation. Real-world risk is moderate and context-dependent: high for devices with accessible sensor buses in adversarial physical environments, low for cloud-managed systems with no sensor hardware.

Exploit ScenarioDerived

An attacker who has physically accessed the I2C/SPI bus of a device using the BHI385 SensorAPI - or who has compromised the sensor's firmware through a supply-chain attack - crafts a debug FIFO event in which the first byte of the payload is set to a value greater than 16. When the host library calls bhi385_parse_debug_message() to process this event, memcpy writes the attacker-controlled payload bytes beyond the 17-byte stack buffer, overwriting the function's return address or adjacent stack variables. Depending on stack layout and available gadgets, this results in a firmware crash (DoS) or redirected execution to attacker-controlled code running in the host firmware context.

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

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

Alert me

AnalysisAIv1 – Sep 10, 2026

Stack-based buffer overflow in the Bosch Sensortec BHI385 SensorAPI C library allows a malicious or compromised sensor or bus participant to corrupt host firmware stack memory, leading to denial of service or arbitrary code execution. The flaw resides in bhi385_parse_debug_message() (bhi385_parse.c), which reads an 8-bit message length directly from the attacker-controlled FIFO event payload and passes it unchecked to memcpy targeting a fixed 17-byte stack buffer - any length byte above 16 overwrites adjacent stack data. No public exploit or CISA KEV listing has been identified at time of analysis, but the vendor has published an advisory under BOSCH-SA-223618.

RemediationAI

Consult the Bosch PSIRT advisory at https://psirt.bosch.com/security-advisories/BOSCH-SA-223618.html for the vendor-released patched version of the BHI385 SensorAPI - the exact fixed library version was not extracted from the available data and should not be assumed. Until an updated library is integrated, compensating controls include: disabling debug message parsing if the application does not require it by removing or stubbing the bhi385_parse_debug_message callback registration (trade-off: loss of debug logging from the sensor); validating the length byte in application-level wrappers before the library call (trade-off: requires modifying calling code and may not be feasible for pre-compiled integrations); and restricting physical access to the sensor bus to prevent unauthorized participants from injecting malicious FIFO events. In supply-chain-sensitive deployments, enforce sensor firmware integrity verification to prevent a compromised sensor from serving malicious payloads.

Affected VersionsENISA

BHI385 SensorAPI (C Library) 1.1.0 ≤2.1.0

Affected Packages

euvd bhi385_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 BHI385 is a Bosch Sensortec smart sensor hub (IMU/FIFO-based), and the SensorAPI is the accompanying C host library used by embedded or IoT host systems to parse FIFO events streamed from the sensor over I2C or SPI. CWE-121 (Stack-Based Buffer Overflow) is the root cause: the function bhi385_parse_debug_message() in bhi385_parse.c allocates a 17-byte local array (uint8_t debug_msg[17]) and then calls memcpy() using a length field (callback_info->data_ptr[0]) sourced directly from the incoming event payload without clamping it to 16 or less. Because event payload data originates from the sensor bus rather than OS-level software, the attack surface is the physical or logical sensor communication channel rather than a network socket or system call. The affected component is a C library with no memory-safe runtime, so out-of-bounds writes directly corrupt the host stack frame with no automatic mitigation.

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 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.4 HIGH

AV:L reflects sensor bus access requirement; PR:N because attack originates from hardware side, not OS-level credentials; full C/I/A from stack takeover potential.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/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
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

A stack-based buffer overflow vulnerability exists in the Bosch Sensortec BHI385 SensorAPI (C library) within the debug message parser function bhi385_parse_debug_message (located in bhi385_parse.c).

The function parses FIFO events and extracts an 8-bit message length directly from the attacker-controlled event payload (callback_info->data_ptr[0]) without enforcing bounds checks or clamping the value.

When copying the payload into a fixed-size stack buffer of 17 bytes (uint8_t debug_msg[17]) via memcpy, providing a length byte greater than 16 causes the function to write past the allocated stack boundary.

This memory corruption can be triggered by a malicious or compromised sensor or bus participant, leading to a firmware crash, Denial of Service (DoS), or potentially the execution of arbitrary code via adjacent stack data corruption.

Executive ViewAI

Why It Matters

The Bosch Sensortec BHI385 sensor library contains a vulnerability allowing denial of service or code execution if an attacker compromises the sensor or its communication bus. Organizations deploying BHI385 sensors in IoT, automotive, or industrial systems face operational risk without an available vendor patch and immediate mitigation measures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: network segmentation to isolate affected sensor systems and IoT devices from untrusted networks; restriction of physical access to sensor hardware and communication buses; deployment of host-based system monitoring and alerting for unexpected crashes or memory corruption indicators; and continuous monitoring of BOSCH-SA-223618 and Bosch vendor advisories for patch availability announcements.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche embedded sensor library, specific IoT/wearable/automotive hardware
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.1%
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

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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