# CVE-2026-76788: Stack out-of-bounds write in the OSDP Control Panel reply parser

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-10-19T20:39:22.074Z
- **Modified:** 2026-11-04T05:19:01.180Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

The OSDP Control Panel reply parser cp\_decode\_response() in subsys/mgmt/osdp/src/osdp\_cp.c decodes replies from a Peripheral Device into a stack-allocated struct osdp\_event. For the REPLY\_KEYPPAD and REPLY\_RAW reply types, the payload length is taken from the received frame and the only validation performed is that the declared length is self-consistent with the number of payload bytes present in the frame. Because the attacker controls both the length field and the frame length, that check imposes no bound, and the subsequent memcpy() writes into the fixed 64-byte data arrays of struct osdp\_event\_keypress / struct osdp\_event\_cardread (OSDP\_EVENT\_MAX\_DATALEN). The sibling REPLY\_FMT handler in the same switch already carried the missing \> OSDP\_EVENT\_MAX\_DATALEN bound.

The defect is reached from cp\_process\_reply(), which reads bytes from the OSDP RS-485 channel and passes them through osdp\_phy\_check\_packet() and osdp\_phy\_decode\_packet() before dispatching on the reply ID. Triggering it requires CONFIG\_OSDP with CONFIG\_OSDP\_MODE\_CP and an application event callback registered (the normal Control Panel integration), plus a frame carrying a correct SOM, a valid CRC-16, and a matching 2-bit sequence number — all of which are computable or observable by anyone on the bus. No check ties the reply ID to the outstanding command, so an oversized REPLY\_KEYPPAD or REPLY\_RAW is accepted as the answer to a routine CMD\_POLL. A malicious or compromised card reader, or anyone with access to the RS-485 wiring, can supply such a frame; CONFIG\_OSDP\_SC\_ENABLED only helps while a secure channel is active, and a single unauthenticated frame carrying a bad MAC causes sc\_deactivate(), after which plaintext replies are again accepted.

With the default CONFIG\_OSDP\_UART\_BUFFER\_LENGTH of 256, roughly 180 bytes of fully attacker-chosen data can be written past the end of the stack-allocated event object, over saved registers and the return address on typical Cortex-M and RISC-V frame layouts (Zephyr does not enable stack canaries by default). The impact ranges from a hard crash of the access-control panel to potential control-flow hijack in the context of the OSDP receive thread. The fix adds an OSDP\_EVENT\_MAX\_DATALEN bound to both handlers, capping each memcpy() at the size of its destination.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-76788. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-76788.md
Affected: zephyrproject zephyr >= 3.3.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-76788 being exploited?

There is no confirmed exploitation: CVE-2026-76788 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-76788?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-76788?

zephyrproject zephyr \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-76788?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-76788?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fgg7-h8p9-9q3w>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/f10d55f47c6970e95d3a7c6ba08e6adec3c79acd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-76788>

HTML: <https://flawdb.com/CVE-2026-76788> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-76788>
