CVE-2026-13214: memory-safety in zephyrproject zephyr
Description
CVE-2026-13214 is a critical stack buffer overflow vulnerability in the Zephyr project's OCPP 1.6 client. The flaw occurs in the parse_getconfig_msg() function when handling a GetConfiguration request, where an attacker-controlled JSON key string is copied without bounds into a fixed 50-byte stack buffer. This allows an attacker controlling the central system endpoint or a man-in-the-middle on an unencrypted connection to overflow the stack, potentially causing denial of service or remote code execution depending on system hardening.
CVSS v3.1
Score 9.8critical
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the Zephyr OCPP 1.6 client code, specifically in subsys/net/lib/ocpp/ocpp_j.c's parse_getconfig_msg() function. It improperly uses an unbounded strcpy() to copy the 'key' string from a GetConfiguration request into a fixed-size 50-byte stack buffer (skey[CISTR50]). Since the key length is only limited by the receive buffer size (default 2048 bytes), this can overflow the stack of the OCPP reader thread. The attack vector is via the WebSocket connection from the central system to the charge point. The vulnerability can lead to a stack smash, causing denial of service or potentially remote code execution depending on build-time mitigations like stack canaries and MPU configuration. The fix involves replacing strcpy() with a bounded strncpy() and explicit null termination.
Potential Impact
This vulnerability allows a remote attacker who controls the central system endpoint or can intercept unencrypted WebSocket traffic to trigger a stack buffer overflow in the OCPP reader thread. The immediate impact is denial of service due to stack corruption. Depending on the device's build-time security hardening, it may also enable remote code execution, posing a severe risk to affected systems.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix replaces the unsafe strcpy() with a bounded strncpy() and explicit null termination. Until an official patch is available, avoid connecting to untrusted central systems and ensure WebSocket connections are encrypted to prevent man-in-the-middle attacks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-24T15:29:23.253Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a8d1f97acd9273b49af8fcb
Added to database: 08/25/2026, 04:52:39 UTC
Last enriched: 09/10/2026, 07:22:32 UTC
Last updated: 10/08/2026, 06:48:15 UTC
Views: 179
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.