Buffer Overflow Affecting riot-os/riot package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-RIOTOSRIOT-6765788
  • published2 May 2024
  • disclosed1 May 2024
  • credit0xdea

Introduced: 1 May 2024

CVE-2024-32017  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

There is no fixed version for riot-os/riot.

Overview

Affected versions of this package are vulnerable to Buffer Overflow due to a small typo in the size check within the gcoap_dns_server_proxy_get function, leading to incorrect length verification of the _proxy string instead of the _uri string. This vulnerability could lead to a range of impacts, from denial of service to arbitrary code execution, if the attacker-controlled input crosses a security boundary.

Note: This flaw, combined with the absence of an explicit size check before data is copied to the cep->req_etag buffer in the _gcoap_forward_proxy_copy_options function, allows for the possibility of a buffer overflow if an attacker crafts input that causes optlen to exceed COAP_ETAG_LENGTH_MAX.

CVSS Scores

version 3.1