CVE-2026-23747: CWE-121 Stack-based Buffer Overflow in Golioth Firmware SDK
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 golioth_payload_as_int() and golioth_payload_as_float() helpers copy network-supplied payload data into fixed-size stack buffers using memcpy() with a length derived from payload_size. The only length checks are guarded by assert(); in release builds, the asserts are compiled out and memcpy() may copy an unbounded payload_size. 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.
AI Analysis
Technical Summary
Golioth Firmware SDK versions prior to 0.22.0, including 0.10.0, contain a stack-based buffer overflow in the Payload Utils component. The functions golioth_payload_as_int() and golioth_payload_as_float() use memcpy() to copy payload data into fixed-size stack buffers, relying on assert() for length checks. Since asserts are removed in release builds, memcpy() may copy an unbounded payload_size, allowing payloads larger than the buffer sizes (12 bytes for int, 32 bytes for float) to overflow the stack. This can lead to a crash or denial of service. The vulnerability is reachable through LightDB State on_payload when interacting with a malicious server or via a man-in-the-middle attack. The issue is fixed in commit 48f521b, which corresponds to version 0.22.0 and later.
Potential Impact
An attacker controlling the server or performing a man-in-the-middle attack can send a specially crafted payload that exceeds the expected size, causing a stack-based buffer overflow. This overflow can result in a crash of the affected device or denial of service. There is no indication of code execution or privilege escalation in the provided data. The CVSS 4.0 base score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and low impact on availability.
Mitigation Recommendations
A fix is available in Golioth Firmware SDK version 0.22.0 and later, as implemented in commit 48f521b. Users should upgrade to version 0.22.0 or later to remediate this vulnerability. Until upgraded, avoid interacting with untrusted or potentially malicious servers to reduce exposure. Patch status is confirmed fixed in the vendor's commit; no additional vendor advisory was provided.
CVE-2026-23747: CWE-121 Stack-based Buffer Overflow in Golioth Firmware SDK
Description
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 golioth_payload_as_int() and golioth_payload_as_float() helpers copy network-supplied payload data into fixed-size stack buffers using memcpy() with a length derived from payload_size. The only length checks are guarded by assert(); in release builds, the asserts are compiled out and memcpy() may copy an unbounded payload_size. 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.
CVSS v4.0
Score 6.3medium
Affected software
pkg:github/golioth/golioth-firmware-sdkRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Golioth Firmware SDK versions prior to 0.22.0, including 0.10.0, contain a stack-based buffer overflow in the Payload Utils component. The functions golioth_payload_as_int() and golioth_payload_as_float() use memcpy() to copy payload data into fixed-size stack buffers, relying on assert() for length checks. Since asserts are removed in release builds, memcpy() may copy an unbounded payload_size, allowing payloads larger than the buffer sizes (12 bytes for int, 32 bytes for float) to overflow the stack. This can lead to a crash or denial of service. The vulnerability is reachable through LightDB State on_payload when interacting with a malicious server or via a man-in-the-middle attack. The issue is fixed in commit 48f521b, which corresponds to version 0.22.0 and later.
Potential Impact
An attacker controlling the server or performing a man-in-the-middle attack can send a specially crafted payload that exceeds the expected size, causing a stack-based buffer overflow. This overflow can result in a crash of the affected device or denial of service. There is no indication of code execution or privilege escalation in the provided data. The CVSS 4.0 base score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and low impact on availability.
Mitigation Recommendations
A fix is available in Golioth Firmware SDK version 0.22.0 and later, as implemented in commit 48f521b. Users should upgrade to version 0.22.0 or later to remediate this vulnerability. Until upgraded, avoid interacting with untrusted or potentially malicious servers to reduce exposure. Patch status is confirmed fixed in the vendor's commit; no additional vendor advisory was provided.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-01-15T18:42:20.937Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69a0a1c885912abc71d0baa9
Added to database: 02/26/2026, 19:40:56 UTC
Last enriched: 07/15/2026, 11:04:32 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 209
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.