CVE-2024-38517
published medium CVSS 3.1 · 6.8Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Tencent | — | RapidJSON<= 1.1.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-684 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | rapidjson | Fixed | 1.1.0-r7 | Package fix record |
| Ubuntu | bionic | rapidjson | Advisory build | 1.1.0+dfsg2-3ubuntu0.1~esm1 | USN-7125-1 |
| Amazon Linux | AL2023 | rapidjsonaarch64 | Listed in advisory | Not stated | ALAS2023-2024-684 |
| Alpine Linux | v3.20 | rapidjson | Fixed | 1.1.0-r6 | Package fix record |
| Alpine Linux | v3.21 | rapidjson | Fixed | 1.1.0-r7 | Package fix record |
| Alpine Linux | v3.22 | rapidjson | Fixed | 1.1.0-r7 | Package fix record |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | rapidjson | Fixed | 1.1.0-r7 | Package fix record |
| Alpine Linux | v3.24 | rapidjson | Fixed | 1.1.0-r7 | Package fix record |
| Ubuntu | bionic | rapidjson-dev | Advisory build | 1.1.0+dfsg2-3ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu | focal | rapidjson | Advisory build | 1.1.0+dfsg2-5ubuntu1+esm1 | USN-7125-1 |
| Ubuntu | focal | rapidjson-dev | Advisory build | 1.1.0+dfsg2-5ubuntu1+esm1 | USN-7125-1 |
| Ubuntu | jammy | rapidjson | Advisory build | 1.1.0+dfsg2-7ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu | jammy | rapidjson-dev | Advisory build | 1.1.0+dfsg2-7ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu | noble | rapidjson | Advisory build | 1.1.0+dfsg2-7.2ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu | noble | rapidjson-dev | Advisory build | 1.1.0+dfsg2-7.2ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu | xenial | rapidjson | Advisory build | 0.12~git20141031-3ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu | xenial | rapidjson-dev | Advisory build | 0.12~git20141031-3ubuntu0.1~esm1 | USN-7125-1 |
| Amazon Linux | AL2023 | rapidjsonnoarch | Listed in advisory | Not stated | ALAS2023-2024-684 |
| Amazon Linux | AL2023 | rapidjsonsrc | Listed in advisory | Not stated | ALAS2023-2024-684 |
| Amazon Linux | AL2023 | rapidjsonx86_64 | Listed in advisory | Not stated | ALAS2023-2024-684 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Tencent | RapidJSON | <= 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-191 CWE-191: Integer Underflow (Wrap or Wraparound)
References
4- https://github.com/Tencent/rapidjson/pull/1261/commits/8269bc2bc289e9d343bae51cdf6d23ef0950e001
- https://github.com/fmalita/rapidjson/commit/8269bc2bc289e9d343bae51cdf6d23ef0950e001
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38517
- https://security.netapp.com/advisory/ntap-20240905-0001/
Provider assertions
3GitHub_M · cna
Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0e99e71478a45a31aa23cc8026d326cafc653a9babe4080a9ccf4cd60089f99f
- Ingested
- 23 Sep 2026, 08:24:49 UTC
- Source record
- Official CVE record