CVE-2024-38517
Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
6.8
Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
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.
- Record
CVE-2024-38517- CVSS 3.1
- 6.8 Medium
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 - Weakness
- CWE-191
- Updated
- 2026-11-02
EUVDEUVD-2024-37387
6.8
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.
- Record
EUVD-2024-37387- CVSS 3.1
- 6.8 Medium
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 - Updated
- 2026-11-03
NVD
7.8
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.
- Record
CVE-2024-38517- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-191
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-38517
7.8
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.
- Record
ALPINE-CVE-2024-38517- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVBELL-CVE-2024-38517
7.8
- Record
BELL-CVE-2024-38517- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
7.8
Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
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.
- Record
CVE-2024-38517- CVSS 3.1
- 7.8 High
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 - Weakness
- CWE-191
- Updated
- 2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2024-38517
7.8
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.
- Record
DEBIAN-CVE-2024-38517- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2024-1857
7.8
rapidjson security update
RapidJSON as a fast JSON parser which generator for c++. Its inspired by RapidXML. Its supports both SAX & DOM style API. Its small but complete. Its fast, Its preformance can be comparabel to strlen(). Its self-contained. It doesnt depend on external libraries such as BOOST. Its Unicode and memory friendly, each JSON valude occupies exactly 16/20 bytes for most 32/64-bit machines. It`s suport UTF-8 UTF-16 UTF-32 (LE & BE).
Security Fix(es):
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.(CVE-2024-38517)
- Record
OESA-2024-1857- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-38517
7.8
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.
- Record
UBUNTU-CVE-2024-38517- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-43245 No score
CVE-2024-38517 affecting package rapidjson for versions less than 1.1.0-8
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.
- Record
AZL-43245- Updated
- 2026-11-05
OSVAZL-43300 No score
CVE-2024-38517 affecting package rapidjson for versions less than 1.1.0-8
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.
- Record
AZL-43300- Updated
- 2026-11-02
OSVAZL-43320 No score
CVE-2024-38517 affecting package ceph for versions less than 16.2.10-5
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.
- Record
AZL-43320- Updated
- 2026-11-02
OSVAZL-43543 No score
CVE-2024-38517 affecting package opencc 1.1.1-3
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.
- Record
AZL-43543- Updated
- 2026-11-02
OSVAZL-45330 No score
CVE-2024-38517 affecting package opencc 1.1.1-3
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.
- Record
AZL-45330- Updated
- 2026-11-05
OSVMGASA-2024-0371 No score
Updated rapidjson packages fix security vulnerability
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. (CVE-2024-38517)
- Record
MGASA-2024-0371- Updated
- 2026-11-02
OSVUSN-7125-1 No score
rapidjson vulnerability
It was discovered that RapidJSON incorrectly parsed numbers written in scientific notation, leading to an integer underflow. An attacker could possibly use this issue to cause a denial of service, or execute arbitrary code.
- Record
USN-7125-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
rapidjsonAlpine:v3.20 |
before 1.1.0-r6 | 1.1.0-r6 |
rapidjsonAlpine:v3.21 |
before 1.1.0-r7 | 1.1.0-r7 |
rapidjsonAlpine:v3.22 |
before 1.1.0-r7 | 1.1.0-r7 |
rapidjsonAlpine:v3.23 |
before 1.1.0-r7 | 1.1.0-r7 |
rapidjsonAlpine:v3.24 |
before 1.1.0-r7 | 1.1.0-r7 |
rapidjsonAzure Linux:3 |
before 1.1.0-8 | 1.1.0-8 |
rapidjsonAzure Linux:2 |
before 1.1.0-8 | 1.1.0-8 |
cephAzure Linux:2 |
before 16.2.10-5 | 16.2.10-5 |
openccAzure Linux:2 |
through 1.1.1-3 | None known |
openccAzure Linux:3 |
through 1.1.1-3 | None known |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rapidjsonAlpaquita:23 |
1.1.0-r4 up to 1.1.0-r5 | 1.1.0-r5 |
rapidjsonAlpaquita:stream |
1.1.0-r4 up to 1.1.0-r7 | 1.1.0-r7 |
rapidjsonDebian:12 |
All versions, plus listed versions 1.1.0+dfsg2-7.11.1.0+dfsg2-7.21.1.0+dfsg2-7.31.1.0+dfsg2-7.41.1.0+dfsg2-7.6 |
None known |
rapidjsonDebian:13 |
before 1.1.0+dfsg2-7.4 | 1.1.0+dfsg2-7.4 |
rapidjsonDebian:14 |
before 1.1.0+dfsg2-7.4 | 1.1.0+dfsg2-7.4 |
rapidjsonMageia:9 |
before 1.1.0-6.1.mga9 | 1.1.0-6.1.mga9 |
rapidjsonopenEuler:24.03-LTS |
before 1.1.0-13.oe2403 | 1.1.0-13.oe2403 |
rapidjsonopenEuler:22.03-LTS-SP4 |
before 1.1.0-12.oe2203sp4 | 1.1.0-12.oe2203sp4 |
rapidjsonopenEuler:22.03-LTS-SP1 |
before 1.1.0-11.oe2203sp1 | 1.1.0-11.oe2203sp1 |
rapidjsonopenEuler:22.03-LTS-SP3 |
before 1.1.0-12.oe2203sp3 | 1.1.0-12.oe2203sp3 |
rapidjsonopenEuler:20.03-LTS-SP4 |
before 1.1.0-12.oe2003sp4 | 1.1.0-12.oe2003sp4 |
rapidjsonUbuntu:Pro:16.04:LTS |
before 0.12~git20141031-3ubuntu0.1~esm1, plus listed versions 0.12~git20141031-3 |
0.12~git20141031-3ubuntu0.1~esm1 |
rapidjsonUbuntu:Pro:18.04:LTS |
before 1.1.0+dfsg2-3ubuntu0.1~esm1, plus listed versions 0.12~git20141031+dfsg-11.1.0+dfsg2-3 |
1.1.0+dfsg2-3ubuntu0.1~esm1 |
rapidjsonUbuntu:Pro:20.04:LTS |
before 1.1.0+dfsg2-5ubuntu1+esm1, plus listed versions 1.1.0+dfsg2-51.1.0+dfsg2-5ubuntu1 |
1.1.0+dfsg2-5ubuntu1+esm1 |
rapidjsonUbuntu:Pro:22.04:LTS |
before 1.1.0+dfsg2-7ubuntu0.1~esm1, plus listed versions 1.1.0+dfsg2-7 |
1.1.0+dfsg2-7ubuntu0.1~esm1 |
rapidjsonUbuntu:Pro:24.04:LTS |
before 1.1.0+dfsg2-7.2ubuntu0.1~esm1, plus listed versions 1.1.0+dfsg2-7.11.1.0+dfsg2-7.2 |
1.1.0+dfsg2-7.2ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| affected, aliases, references | OSV | |
| aliases, published | EUVD | |
| first indexed | CVE List, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-38517 is a medium vulnerability (CVSS 6.8) in Tencent Rapidjson, published July 9, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.38%, the 31st percentile. Fixed in rapidjson 1.1.0-r6.
References
msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38517
github.com/Tencent/rapidjson/pull/1261/commits/8269bc2bc289e9d343bae51cdf6d23ef0950e001
github.com/fmalita/rapidjson/commit/8269bc2bc289e9d343bae51cdf6d23ef0950e001
security.netapp.com/advisory/ntap-20240905-0001
security.alpinelinux.org/vuln/CVE-2024-38517
nvd.nist.gov/vuln/detail/CVE-2024-38517
Show 9 moreShow less
docs.bell-sw.com/security/cves/CVE-2024-38517
github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38517.json
security-tracker.debian.org/tracker/CVE-2024-38517
advisories.mageia.org/MGASA-2024-0371.html
bugs.mageia.org/show_bug.cgi?id=33803
ubuntu.com/security/notices/USN-7125-1
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-1857
ubuntu.com/security/CVE-2024-38517
cve.org/CVERecord?id=CVE-2024-38517