# CVE-2024-32018: Ineffective size check due to assert() and buffer overflow in RIOT

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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.54%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-01T06:14:03.199Z
- Modified: 2026-06-17T07:29:07.747Z
- 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. Most codebases define assertion macros which compile to a no-op on non-debug builds. If assertions are the only line of defense against untrusted input, the software may be exposed to attacks that leverage the lack of proper input checks. In detail, in the `nimble_scanlist_update()` function below, `len` is checked in an assertion and subsequently used in a call to `memcpy()`. If an attacker is able to provide a larger `len` value while assertions are compiled-out, they can write past the end of the fixed-length `e->ad` buffer. 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 not yet been patched. Users are advised to add manual `len` checking.

(As written by CVE List.)

## Affected

- RIOT-OS RIOT: <= 2023.10; up to 2023.10; up to 2024.01

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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-899m-q6pp-hmp3> (exploit, vendor-advisory)
- <https://github.com/RIOT-OS/RIOT/blob/master/pkg/nimble/scanlist/nimble_scanlist.c#L74-L87> (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-32018](https://www.cve.org/CVERecord?id=CVE-2024-32018), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2024-32018](https://nvd.nist.gov/vuln/detail/CVE-2024-32018), Public domain, modified 2026-06-17

---

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