CVE-2024-38517

NameCVE-2024-38517
DescriptionTencent 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1083185

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rapidjson (PTS)stretch0.12~git20141031+dfsg-1vulnerable
buster1.1.0+dfsg2-5vulnerable
bullseye1.1.0+dfsg2-7vulnerable
bookworm1.1.0+dfsg2-7.1vulnerable
sid, trixie1.1.0+dfsg2-7.3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
rapidjsonsourcestretch(unfixed)end-of-life
rapidjsonsourcebuster(unfixed)end-of-life
rapidjsonsource(unstable)(unfixed)1083185

Notes

[bookworm] - rapidjson <no-dsa> (Minor issue)
[bullseye] - rapidjson <postponed> (Minor issue)
https://github.com/Tencent/rapidjson/pull/1261

Search for package or bug name: Reporting problems