Skip to main content

CVE-2026-107838: CWE-252: Unchecked Return Value in RIOT-OS RIOT

0
High
VulnerabilityCVE-2026-107838cvecve-2026-107838cwe-252cwe-617
Published: 10/09/2026 (10/09/2026, 17:55:34 UTC)
Source: CVE Database V5
Vendor/Project: RIOT-OS
Product: RIOT

Description

CVE-2026-107838 is a high-severity vulnerability in the RIOT-OS microcontroller operating system affecting versions from 2023.07 through 2026.07. It involves unchecked return values in the nanocoap_fileserver component, where failure to handle a response initialization error can lead to assertion failures and termination of the affected service or device task. This occurs when a remote client sends a CoAP request with a large extended token while nanocoap_token_ext is enabled. No fixed release is currently available.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

RIOT-OS

RIOT

Affected versions
>=2023.07 <=2026.07
GitHub Actionsmore threats →ai
riot-os/RIOT
pkg:github/riot-os/RIOT
Affected versions
>=2023.07 <=2026.07

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/09/2026, 18:18:28 UTC

Technical Analysis

RIOT-OS versions 2023.07 through 2026.07 contain a vulnerability in the nanocoap_fileserver module (sys/net/application_layer/nanocoap/fileserver.c) where callers ignore the failure returned by _resp_init() when coap_build_reply() cannot fit a response header into the response buffer. A remote attacker can exploit this by sending a CoAP request with a sufficiently large extended token, causing response initialization to fail but allowing _get_file() or _get_directory() to continue operating with stale response state. This leads to an assertion failure in _calc_szx2() when pdu->payload_len exceeds the reserved size, resulting in termination of the affected service or device task. No patch or fixed release is currently available as of the latest review.

Potential Impact

The vulnerability can cause denial of service by terminating the affected service or device task due to assertion failure. It does not impact confidentiality or integrity but results in availability disruption. The CVSS 3.1 base score is 7.5 (high), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and impact limited to availability.

Mitigation Recommendations

No official fix or patch is currently available for this vulnerability. Users should monitor the vendor's advisories for updates and consider implementing network-level protections to limit exposure to malicious CoAP requests with large extended tokens. Avoid enabling nanocoap_token_ext if possible until a fix is released. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-08T22:34:49.290Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ac92c962cdf04f656752967

Added to database: 10/09/2026, 18:04:06 UTC

Last enriched: 10/09/2026, 18:18:28 UTC

Last updated: 10/09/2026, 18:57:31 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses