CVE-2026-13214: memory-safety in zephyrproject zephyr
CVE-2026-13214 is a critical stack buffer overflow vulnerability in the OCPP 1.6 client of the Zephyr project. The flaw exists in the parse_getconfig_msg() function, which handles GetConfiguration requests by copying an attacker-controlled JSON key string into a fixed 50-byte stack buffer using an unbounded strcpy(). This allows an attacker controlling the central system endpoint or a man-in-the-middle on an unencrypted connection to overflow the stack and potentially execute arbitrary code or cause denial of service.
AI Analysis
Technical Summary
The vulnerability in Zephyr's OCPP 1.6 client arises from an unbounded strcpy() call in parse_getconfig_msg() that copies the 'key' field from a GetConfiguration JSON request into a fixed-size 50-byte stack buffer. Since the key string length is only bounded by the receive buffer size (default 2048 bytes), an attacker controlling the central system or intercepting the WebSocket connection can send an oversized key, triggering a stack buffer overflow on the reader thread. This can lead to denial of service or remote code execution depending on build-time mitigations such as stack canaries and MPU configuration. The fix involves replacing strcpy() with a bounded strncpy() and explicit null termination.
Potential Impact
This vulnerability allows remote attackers who control the central system endpoint or can perform man-in-the-middle attacks on unencrypted WebSocket connections to cause a stack buffer overflow in the OCPP reader thread. The impact ranges from denial of service due to a stack smash to potential remote code execution depending on the device's security hardening. The CVSS score of 9.8 reflects the critical nature of this remote, unauthenticated, network-based vulnerability with high confidentiality, integrity, and availability impact.
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 to prevent overflow. Until an official patch is available, avoid exposing the OCPP WebSocket connection to untrusted or man-in-the-middle capable networks, and consider applying build-time hardening such as stack canaries and MPU configuration to mitigate exploitation impact.
CVE-2026-13214: memory-safety in zephyrproject zephyr
Description
CVE-2026-13214 is a critical stack buffer overflow vulnerability in the OCPP 1.6 client of the Zephyr project. The flaw exists in the parse_getconfig_msg() function, which handles GetConfiguration requests by copying an attacker-controlled JSON key string into a fixed 50-byte stack buffer using an unbounded strcpy(). This allows an attacker controlling the central system endpoint or a man-in-the-middle on an unencrypted connection to overflow the stack and potentially execute arbitrary code or cause denial of service.
CVSS v3.1
Score 9.8critical
Affected software
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 in Zephyr's OCPP 1.6 client arises from an unbounded strcpy() call in parse_getconfig_msg() that copies the 'key' field from a GetConfiguration JSON request into a fixed-size 50-byte stack buffer. Since the key string length is only bounded by the receive buffer size (default 2048 bytes), an attacker controlling the central system or intercepting the WebSocket connection can send an oversized key, triggering a stack buffer overflow on the reader thread. This can lead to denial of service or remote code execution depending on build-time mitigations such as stack canaries and MPU configuration. The fix involves replacing strcpy() with a bounded strncpy() and explicit null termination.
Potential Impact
This vulnerability allows remote attackers who control the central system endpoint or can perform man-in-the-middle attacks on unencrypted WebSocket connections to cause a stack buffer overflow in the OCPP reader thread. The impact ranges from denial of service due to a stack smash to potential remote code execution depending on the device's security hardening. The CVSS score of 9.8 reflects the critical nature of this remote, unauthenticated, network-based vulnerability with high confidentiality, integrity, and availability impact.
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 to prevent overflow. Until an official patch is available, avoid exposing the OCPP WebSocket connection to untrusted or man-in-the-middle capable networks, and consider applying build-time hardening such as stack canaries and MPU configuration to mitigate exploitation impact.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-24T15:29:23.253Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8d1f97acd9273b49af8fcb
Added to database: 08/25/2026, 04:52:39 UTC
Last enriched: 08/25/2026, 05:07:06 UTC
Last updated: 08/25/2026, 05:30:09 UTC
Views: 5
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.