CVE-2026-13217
Last modified
CVE-2026-13217 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp.c reconstructs a session handle and PDU id from the uid field of a CALLRESULT message. In ocpp_process_server_msg() the code calls atoi(strtok_r(uid, "-", &tmp)) without checking the strtok_r return value. EPSS estimates a 0.51% chance of exploitation in the next 30 days.
Description
The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp.c reconstructs a session handle and PDU id from the uid field of a CALLRESULT message. In ocpp_process_server_msg() the code calls atoi(strtok_r(uid, "-", &tmp)) without checking the strtok_r return value. When the server-supplied uid is empty or contains no - delimiter, strtok_r() returns NULL and atoi(NULL) dereferences a NULL pointer, which is undefined behaviour. The uid originates from network data: parse_rpc_msg() in subsys/net/lib/ocpp/ocpp_j.c JSON-parses a frame received from the OCPP central system over TCP/WebSocket and copies the server-controlled string into the local buffer. A malicious or compromised central system, or a man-in-the-middle on a non-TLS ws:// connection, can return a malformed uid to reach the defect. No authentication beyond the existing server connection (or MITM position) is required, and the reconstructed pointer is membership-validated by ocpp_session_is_valid(), so the impact is limited to the NULL dereference rather than arbitrary pointer use. On Zephyr targets that trap access to address 0 (MMU/MPU platforms or CONFIG_NULL_POINTER_EXCEPTION_DETECTION), the dereference faults inside the OCPP reader thread and invokes the fatal handler, producing a remote denial of service of the charge point; on bare targets where address 0 is readable the call returns 0 and is benign, so the impact is availability-only and platform-conditional. The applied fix guards only the first atoi(); the second strtok_r(NULL, "-", &tmp) followed by pdu = atoi(buf) in the same function remains unguarded and the identical NULL dereference is still reachable from the same network input when the uid has a first token but no second --delimited token. A complete fix should validate the second token as well.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 4.3.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-13217?
How severe is CVE-2026-13217?
How do I fix CVE-2026-13217?
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-13211The genucenter web interface before version 8.0p11 unnecessa…4.3
- CVE-2026-13212The Zephyr virtio driver does not validate the descriptor-ch…8.8
- CVE-2026-13213The Hearing Access Service (HAS) GATT server in subsys/bluet…5.3
- CVE-2026-13214The OCPP 1.6 client in subsys/net/lib/ocpp/ocpp_j.c contains…9.8
- CVE-2026-13215The Zephyr ext2 filesystem driver fails to validate the s_lo…6.8
- CVE-2026-13216The virtio PCI driver (drivers/virtio/virtio_pci.c) parses a…6.1
- CVE-2026-13218A flaw was found in KubeVirt's virt-handler network cache ha…4.2
- CVE-2026-1322GitLab has remediated an issue in GitLab CE/EE affecting all…8.1
- CVE-2026-13221Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-R…9.1
- CVE-2026-13222Our payment integration with Oppwa-based payment methods did…6.3
- CVE-2026-13223Our payment integration with Computop-based payment methods …6.3
- CVE-2026-13225Malicious HTML content could be injected into the email addr…5.3
Are you affected by CVE-2026-13217?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
