CVE-2026-23749: CWE-170: Improper Null Termination in Golioth Firmware SDK
Golioth Firmware SDK version 0.19.1 prior to 0.22.0, fixed in commit 0e788217, contain an out-of-bounds read due to improper null termination of a blockwise transfer path. blockwise_transfer_init() accepts a path whose length equals CONFIG_GOLIOTH_COAP_MAX_PATH_LEN and copies it using strncpy() without guaranteeing a trailing NUL byte, leaving ctx->path unterminated. A later strlen() on this buffer (in golioth_coap_client_get_internal()) can read past the end of the allocation, resulting in a crash/denial of service. The input is application-controlled (not network by default).
AI Analysis
Technical Summary
Golioth Firmware SDK versions before 0.22.0, including 0.19.1, contain an out-of-bounds read vulnerability due to improper null termination in the blockwise_transfer_init() function. This function copies a path of length equal to CONFIG_GOLIOTH_COAP_MAX_PATH_LEN using strncpy() without ensuring a null terminator, leaving ctx->path unterminated. Later, golioth_coap_client_get_internal() calls strlen() on this unterminated buffer, which can read beyond the allocated memory, causing a crash or denial of service. The input is controlled by the application, not by network input by default. The issue was fixed in commit 0e788217 and versions 0.22.0 and later.
Potential Impact
The vulnerability can cause a denial of service via a crash due to an out-of-bounds read when strlen() is called on an unterminated string buffer. There is no indication of code execution or information disclosure. The attack vector requires application-level input control, not network exposure by default. The CVSS 4.0 base score is 2.1, indicating low severity.
Mitigation Recommendations
A fix is available and was introduced in commit 0e788217, included in Golioth Firmware SDK version 0.22.0 and later. Users should upgrade to version 0.22.0 or newer to remediate this issue. No additional mitigations are indicated by the vendor advisory.
CVE-2026-23749: CWE-170: Improper Null Termination in Golioth Firmware SDK
Description
Golioth Firmware SDK version 0.19.1 prior to 0.22.0, fixed in commit 0e788217, contain an out-of-bounds read due to improper null termination of a blockwise transfer path. blockwise_transfer_init() accepts a path whose length equals CONFIG_GOLIOTH_COAP_MAX_PATH_LEN and copies it using strncpy() without guaranteeing a trailing NUL byte, leaving ctx->path unterminated. A later strlen() on this buffer (in golioth_coap_client_get_internal()) can read past the end of the allocation, resulting in a crash/denial of service. The input is application-controlled (not network by default).
CVSS v4.0
Score 2.1low
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 before 0.22.0, including 0.19.1, contain an out-of-bounds read vulnerability due to improper null termination in the blockwise_transfer_init() function. This function copies a path of length equal to CONFIG_GOLIOTH_COAP_MAX_PATH_LEN using strncpy() without ensuring a null terminator, leaving ctx->path unterminated. Later, golioth_coap_client_get_internal() calls strlen() on this unterminated buffer, which can read beyond the allocated memory, causing a crash or denial of service. The input is controlled by the application, not by network input by default. The issue was fixed in commit 0e788217 and versions 0.22.0 and later.
Potential Impact
The vulnerability can cause a denial of service via a crash due to an out-of-bounds read when strlen() is called on an unterminated string buffer. There is no indication of code execution or information disclosure. The attack vector requires application-level input control, not network exposure by default. The CVSS 4.0 base score is 2.1, indicating low severity.
Mitigation Recommendations
A fix is available and was introduced in commit 0e788217, included in Golioth Firmware SDK version 0.22.0 and later. Users should upgrade to version 0.22.0 or newer to remediate this issue. No additional mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-01-15T18:42:20.938Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69a0a1ca85912abc71d0bb4e
Added to database: 02/26/2026, 19:40:58 UTC
Last enriched: 07/15/2026, 11:04:58 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 224
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.