CVE-2024-38517
Reported by github_m · Published July 9, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rapidjson | Alpine | 1.1.0-r7, 1.1.0-r6 |
| rapidjson-doc | Amazon Linux | 1.1.0-16.amzn2023.0.3 |
| rapidjson-devel | Amazon Linux | 1.1.0-16.amzn2023.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Tencent | RapidJSON | <= 1.1.0 |
| alpine | rapidjson | 0, 0 |
| amazon:2023 | rapidjson-doc | 0 |
| amazon:2023 | rapidjson-devel | 0 |
| Tencent | RapidJSON | 0 |
Timeline
- Jul 9, 2024 CVE Published
- Jul 10, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 8, 2026 Security Advisory (89 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-38517
vulnetix vdb fixes CVE-2024-38517
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38517/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38517 x_refsource_CONFIRM
- https://github.com/Tencent/rapidjson/pull/1261/commits/8269bc2bc289e9d343bae51cdf6d23ef0950e001 x_refsource_MISC
- https://github.com/fmalita/rapidjson/commit/8269bc2bc289e9d343bae51cdf6d23ef0950e001 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20240905-0001/ url