All reports
Medium

uriparser: integer overflow via long keys or values in ComposeQueryEngine() in UriQuery.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-34402

Probability of exploitation in the next 30 days: 1.23%

FIRST EPSS · 2026-11-22

Description

An issue was discovered in uriparser through 0.9.7. ComposeQueryEngine in UriQuery.c has an integer overflow via long keys or values, with a resultant buffer overflow.

An integer overflow issue was found in Uriparser in the ComposeQueryEngine() function in UriQuery.c. This function computes the space needed for composing a query string. However, it encounters an integer overflow issue when handling large key or value lengths, potentially leading to incorrect memory allocations or operations due to malformed size calculations. This flaw allows attackers to crash the application, resulting in a denial of service.