Golioth Firmware SDK version 0.10.0 prior to 0.22.0, fixed in commit 48f521b, contain a stack-based buffer overflow in Payload Utils. The goliothpayloadasint() and goliothpayloadasfloat() helpers copy network-supplied payload data into fixed-size stack buffers using memcpy() with a length derived from payloadsize. The only length checks are guarded by assert(); in release builds, the asserts are compiled out and memcpy() may copy an unbounded payloadsize. Payloads larger than 12 bytes (int) or 32 bytes (float) can overflow the stack, resulting in a crash/denial of service. This is reachable via LightDB State on_payload with a malicious server or MITM.