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

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-01T06:13:58.610Z
- Modified: 2026-06-17T07:28:00.933Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- RIOT-OS RIOT: <= 2023.10; *; before 2024.01

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-2572-7q7c-3965> (exploit, vendor-advisory)
- <https://github.com/RIOT-OS/RIOT/blob/master/sys/net/application_layer/cord/lc/cord_lc.c#L218> (product)
- <http://www.openwall.com/lists/oss-security/2024/05/07/3> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2024/May/7> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2024-31225](https://www.cve.org/CVERecord?id=CVE-2024-31225), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2024-31225](https://nvd.nist.gov/vuln/detail/CVE-2024-31225), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31225 · Whole record: https://cve.day/CVE-2024-31225.json · Rebuilt by cve.day 2026-11-25T22:58:39.779Z
