All reports
Medium

uriparser: integer overflow via a long string in ComposeQueryMallocExMm() in UriQuery.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-34403

Probability of exploitation in the next 30 days: 1.32%

FIRST EPSS · 2026-11-21

Description

An issue was discovered in uriparser through 0.9.7. ComposeQueryMallocExMm in UriQuery.c has an integer overflow via a long string.

An integer overflow issue was found in Uriparser in the ComposeQueryMallocExMm() 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.