Vulnerability · Published Jul 9, 2024 · Assigned by GitHub_M

CVE-2024-38517Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow

Medium 6.8

In plain English

A medium-severity security flaw in RapidJSON from Tencent. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.4%top 68.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20rapidjson1.1.0-r6ALPINE-CVE-2024-38517
Alpine:v3.21rapidjson1.1.0-r7ALPINE-CVE-2024-38517
Alpine:v3.22rapidjson1.1.0-r7ALPINE-CVE-2024-38517
Alpine:v3.23rapidjson1.1.0-r7ALPINE-CVE-2024-38517
Alpine:v3.24rapidjson1.1.0-r7ALPINE-CVE-2024-38517
Debian:12rapidjsonno fix listedDEBIAN-CVE-2024-38517
Debian:13rapidjson1.1.0+dfsg2-7.4DEBIAN-CVE-2024-38517
Debian:14rapidjson1.1.0+dfsg2-7.4DEBIAN-CVE-2024-38517

Affected products (as reported)

VendorProductVersions
Tencent RapidJSON <= 1.1.0

Weakness: CWE-191 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C

References