Skip to main content
EPSS 0.5%top 58%

CVE-2026-13214: memory-safety in zephyrproject zephyr

0
Critical
VulnerabilityCVE-2026-13214cvecve-2026-13214
Published: 08/25/2026 (08/25/2026, 04:37:20 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

zephyrproject

zephyr

Affected versions
>=4.3.0 <4.4.2
GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=4.3.0 <4.4.2

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

AILast updated: 09/10/2026, 07:22:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses