CVE-2024-32017
CVE-2024-32017 is a critical-severity vulnerability in Riot-os Riot with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-120.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 1% (71st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-29855
- Weakness: CWE-120
- Affected product: Riot-os Riot
- Published:
- Last modified:
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 size check in the `gcoap_dns_server_proxy_get()` function contains a small typo that may lead to a buffer overflow in the subsequent `strcpy()`. In detail, the length of the `_uri` string is checked instead of the length of the `_proxy` string. The `_gcoap_forward_proxy_copy_options()` function does not implement an explicit size check before copying data to the `cep->req_etag` buffer that is `COAP_ETAG_LENGTH_MAX` bytes long. If an attacker can craft input so that `optlen` becomes larger than `COAP_ETAG_LENGTH_MAX`, they can cause a buffer overflow. If the input above is attacker-controlled and crosses a security boundary, the impact of the buffer overflow vulnerabilities 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.
Frequently asked questions
- What is CVE-2024-32017?
- 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 size check in the `gcoap_dns_server_proxy_get()` function contains a small typo that may lead to a buffer overflow in the subsequent `strcpy()`. In detail, the length of the `_uri` string is checked instead of the length of the `_proxy` string. The `_gcoap_forward_proxy_copy_options()` function does not implement an explicit size check before copying data to the `cep->req_etag` buffer that is `COAP_ETAG_LENGTH_MAX` bytes long. If an attacker can craft input so that `optlen` becomes larger than `COAP_ETAG_LENGTH_MAX`, they can cause a buffer overflow. If the input above is attacker-controlled and crosses a security boundary, the impact of the buffer overflow vulnerabilities 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.
- How severe is CVE-2024-32017?
- CVE-2024-32017 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2024-32017 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (71st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-32017?
- CVE-2024-32017 affects Riot-os Riot. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-32017?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2024-32017 have an EU (EUVD) identifier?
- Yes. CVE-2024-32017 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-29855.
- When was CVE-2024-32017 published?
- CVE-2024-32017 was published on 2024-05-01 and last updated on 2026-06-17.
References
- http://seclists.org/fulldisclosure/2024/May/7
- http://www.openwall.com/lists/oss-security/2024/05/07/3
- https://github.com/RIOT-OS/RIOT/blob/master/sys/net/application_layer/gcoap/dns.c#L319-L325
- https://github.com/RIOT-OS/RIOT/blob/master/sys/net/application_layer/gcoap/forward_proxy.c#L352
- https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-v97j-w9m6-c4h3
Affected products (1)
- cpe:2.3:o:riot-os:riot:*:*:*:*:*:*:*:*
More vulnerabilities in Riot-os Riot
- CVE-2026-22214 — Critical (CVSS 9.8): RIOT OS versions up to and including 2026.01-devel-317 contain a stack-based buffer overflow vulnerability in the ethos…
- CVE-2026-22213 — Critical (CVSS 9.8): RIOT OS versions up to and including 2026.01-devel-317 contain a stack-based buffer overflow vulnerability in the…
- CVE-2025-66647 — Critical (CVSS 9.8): RIOT is an open-source microcontroller operating system, designed to match the requirements of Internet of Things (IoT)…
- CVE-2025-53888 — Critical (CVSS 9.8): RIOT-OS, an operating system that supports Internet of Things devices, has an ineffective size check implemented with…
- CVE-2023-33975 — Critical (CVSS 9.8): RIOT-OS, an operating system for Internet of Things (IoT) devices, contains a network stack with the ability to process…
- CVE-2023-24823 — Critical (CVSS 9.8): RIOT-OS, an operating system that supports Internet of Things devices, contains a network stack with the ability to…
All CVEs affecting Riot-os Riot →
Other CWE-120 (Classic Buffer Overflow) vulnerabilities
- CVE-2025-48611 — Critical (CVSS 10.0): In DeviceId of DeviceId.java, there is a possible desync in persistence due to a missing bounds check. This could lead…
- CVE-2026-24823 — Critical (CVSS 10.0): Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in FASTSHIFT…
- CVE-2026-24810 — Critical (CVSS 10.0): Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in rethinkdb (src/cjson modules).…
- CVE-2026-24800 — Critical (CVSS 10.0): Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in tildearrow…
- CVE-2025-9962 — Critical (CVSS 10.0): A buffer overflow vulnerability in Novakon P series allows attackers to gain root permission without prior…
- CVE-2010-10016 — Critical (CVSS 10.0): BS.Player version 2.57 (build 1051) contains a vulnerability in its playlist import functionality. When processing .m3u…
Browse all CWE-120 (Classic Buffer Overflow) vulnerabilities →