{
  "id": "CVE-2026-107838",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-107838",
  "published_at": "2026-10-09T17:55:34.67Z",
  "title": "RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion",
  "vendor": "RIOT-OS",
  "product": "RIOT",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "RIOT is an open-source microcontroller operating system designed for Internet of Things devices and other embedded systems. From version 2023.07 through version 2026.07, nanocoap_fileserver callers in sys/net/application_layer/nanocoap/fileserver.c ignore a failure returned by _resp_init() when coap_build_reply() cannot fit a response header into the response buffer. A remote client can send a CoAP request with a sufficiently large extended token when nanocoap_token_ext is enabled, causing response initialization to fail while _get_file() or _get_directory() continues with stale response state. The path then reaches _calc_szx2() and its pdu-\u003epayload_len \u003e reserve assertion, terminating the affected service or device task. No fixed release is available as of this review.",
  "cwe": "CWE-252",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "RIOT-OS",
        "product": "RIOT",
        "ranges": [
          "\u003e= 2023.07, \u003c= 2026.07"
        ],
        "fixed_in": null
      }
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-39j3-3v73-5mj2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/RIOT-OS/RIOT/pull/22745"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/RIOT-OS/RIOT/commit/d3a47289c58d108575a19e623e4d3f647659e743"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
