All reports
Medium

rapidjson: privilege escalation via integer underflow in GenericReader::ParseNumber()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-38517

Probability of exploitation in the next 30 days: 0.38%

FIRST EPSS · 2026-11-21

Description

Tencent RapidJSON is vulnerable to privilege escalation due to an integer underflow in the GenericReader::ParseNumber() function of include/rapidjson/reader.h when parsing JSON text from a stream. An attacker needs to send the victim a crafted file which needs to be opened; this triggers the integer underflow vulnerability (when the file is parsed), leading to elevation of privilege.

A flaw was found in rapidjson. Processing a crafted JSON text from a stream can cause an integer overflow in the GenericReader::ParseNumber function in the include/rapidjson/reader.h file, resulting in escalation of privileges.