Impact
The OCPP 1.6 client in Zephyr RTOS contains a stack buffer overflow in the GetConfiguration message handler. An attacker can send a GetConfiguration request with a ‘key’ field longer than 50 bytes, causing the handler to perform an unbounded strcpy into a fixed 50‑byte stack buffer. This overflow can corrupt return addresses or adjacent stack data, leading to a stack smash that may trigger a denial of service or, if hardening such as stack canaries is disabled, remote code execution. The vulnerability exists only in the specific OCPP client implementation before the applied patch.
Affected Systems
Zephyr RTOS, specifically subsys/net/lib/ocpp/ocpp_j.c in the OCPP 1.6 client module. Any Zephyr build that includes this module before commit afbf880b04188ae5 is affected. The fix is included in later releases that incorporate this commit.
Risk and Exploitability
The CVSS score of 9.8 highlights the severity. EPSS is not available, but the lack of mitigation in the code and the potential for exploitation in unencrypted WebSocket connections mean the likelihood of attack remains high. An attacker who controls the central system or can perform a man‑in‑the‑middle on an unencrypted WebSocket can construct a malicious GetConfiguration request with an oversized key to trigger the stack overflow. The vulnerability has not been listed in the CISA KEV catalog, though its high severity warrants immediate attention.
OpenCVE Enrichment