CVE-2026-76788
Last modified
CVE-2026-76788 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.3.0, <= 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-76788?
How severe is CVE-2026-76788?
How do I fix CVE-2026-76788?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-76781A flaw was found in libxml2. A local user or an attacker pro…5.5
- CVE-2026-76782Vulnerability in Drupal Screenshot. This issue affects Scree…7.3
- CVE-2026-76783A security vulnerability has been detected in DeDeCMS 53_1_U…7.3
- CVE-2026-76784Multiple TP-Link Kasa smart home devices contain insufficien…8.7
- CVE-2026-76785A security flaw has been discovered in amirsanni Mini-Invent…6.3
- CVE-2026-76787The UpdateHub firmware-over-the-air client parses the CoAP p…5.9
- CVE-2026-76789The Slider Hero with Video Background, Animation WordPress p…8.8
- CVE-2026-7679A security flaw has been discovered in YunaiV yudao-cloud up…7.3
- CVE-2026-76790The Estatik Real Estate Plugin WordPress plugin before 4.3.5…7.1
- CVE-2026-76793The Firebase Authentication WordPress plugin before 1.7.1 do…8.1
- CVE-2026-76794MongoSQL Transition Readiness Tool does not sufficiently enc…4.6
- CVE-2026-76795A vulnerability has been found in AeternaLabsHQ PullMD 3.2.0…7.3
Are you affected by CVE-2026-76788?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
