zephyrproject-rtos.zephyr is vulnerable to Stack-based Buffer Overflow
93
Critical Risk
parse_getconfig_msg in the OCPP 1.6 client copies the attacker-controlled JSON key from a GetConfiguration request into a fixed 50-byte stack buffer with unbounded strcpy. The key length is bounded only by the WebSocket receive buffer, so a central system (or MITM on an unencrypted link) that sends an oversized key overflows the OCPP reader thread stack. That yields at least a denial of service and can enable remote code execution depending on build hardening. The fix replaces the copy with a bounded strncpy and explicit NUL termination.
You are affected if you are using a version that falls within the vulnerable range and your build enables the OCPP client (CONFIG_OCPP).
zephyrproject-rtos.zephyr is vulnerable to Stack-based Buffer Overflow in versions 4.3.0 - 4.4.1.
Upgrade the zephyrproject-rtos.zephyr library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant