CVE-2026-13214

Source
https://cve.org/CVERecord?id=CVE-2026-13214
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-13214.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-13214
Aliases
  • GHSA-fqhf-6v24-4px2
Published
2026-08-25T04:37:20.629Z
Modified
2026-08-28T14:32:56.782690Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Stack buffer overflow in OCPP GetConfiguration key parsing
Details

The OCPP 1.6 client in subsys/net/lib/ocpp/ocppj.c contains a stack buffer overflow in parsegetconfigmsg(). When handling a GetConfiguration request from the central system, the handler copied the attacker-controlled JSON "key" string into the caller's fixed 50-byte stack buffer (skey[CISTR50], declared in subsys/net/lib/ocpp/ocpp.c) using an unbounded strcpy(). The parsed key value points directly into the receive buffer, so its length is bounded only by the message size (CONFIGOCPPRECVBUFFER_SIZE, default 2048).

The GetConfiguration message is delivered over the WebSocket connection that the charge point opens to its configured central system. The reader thread ocppwsreader() reads the message into ui->recvbuf and dispatches it to parsegetconfigmsg() via the PDU function table. An attacker who controls the central system endpoint, or a man-in-the-middle on an unencrypted connection, can send a GetConfiguration request whose "key" field exceeds 50 bytes and overflow the reader thread's stack with attacker-chosen bytes.

The consequence is a remotely triggerable stack smash on the OCPP reader thread: at minimum a denial of service, and plausibly remote code execution depending on build-time hardening such as stack canaries and MPU configuration. The fix replaces the strcpy() with a bounded strncpy(key, payload.key[0], CISTR50 - 1) followed by explicit NUL termination, matching the bounded copies already used by the sibling handlers.

Database specific
{
    "cwe_ids": [
        "CWE-787"
    ],
    "cna_assigner": "zephyr",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13214.json"
}
References

Affected packages

Git / github.com/zephyrproject-rtos/zephyr

Affected ranges

Type
GIT
Repo
https://github.com/zephyrproject-rtos/zephyr
Events
Database specific
Show details
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "4.3.0"
        },
        {
            "fixed": "4.4.2"
        }
    ]
}

Affected versions

v4.*
v4.3.0
v4.4.0
v4.4.0-rc1
v4.4.0-rc2
v4.4.0-rc3

Database specific

vanir_signatures_modified
"2026-08-28T14:32:56Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-13214.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 424.0,
            "function_hash": "186468756718606674659820147338427050198"
        },
        "id": "CVE-2026-13214-705ee633",
        "source": "https://github.com/zephyrproject-rtos/zephyr/commit/afbf880b04188ae53451a0ade4ac62b654fdff34",
        "target": {
            "function": "parse_getconfig_msg",
            "file": "subsys/net/lib/ocpp/ocpp_j.c"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "170653415534705811885530058114443768547",
                "220914679847034149204095315487465218633",
                "177240728858952022581174414645664249970",
                "71044681768474169245967749522313398407"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-13214-badc81f6",
        "source": "https://github.com/zephyrproject-rtos/zephyr/commit/afbf880b04188ae53451a0ade4ac62b654fdff34",
        "target": {
            "file": "subsys/net/lib/ocpp/ocpp_j.c"
        }
    }
]