Every CVE Search/ Get API key

CVE-2024-38517

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

6.8 MediumFix available

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

0.38%Up 0.3 points since Jul 10, 2024
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
rapidjson
Alpine:v3.20
before 1.1.0-r6
1.1.0-r6
rapidjson
Alpine:v3.21
before 1.1.0-r7
1.1.0-r7
rapidjson
Alpine:v3.22
before 1.1.0-r7
1.1.0-r7
rapidjson
Alpine:v3.23
before 1.1.0-r7
1.1.0-r7
rapidjson
Alpine:v3.24
before 1.1.0-r7
1.1.0-r7
rapidjson
Azure Linux:3
before 1.1.0-8
1.1.0-8
rapidjson
Azure Linux:2
before 1.1.0-8
1.1.0-8
ceph
Azure Linux:2
before 16.2.10-5
16.2.10-5
opencc
Azure Linux:2
through 1.1.1-3 None known
opencc
Azure Linux:3
through 1.1.1-3 None known
Show 16 moreShow less
Affected packages
PackageAffectedFixed
rapidjson
Alpaquita:23
1.1.0-r4 up to 1.1.0-r5
1.1.0-r5
rapidjson
Alpaquita:stream
1.1.0-r4 up to 1.1.0-r7
1.1.0-r7
rapidjson
Debian: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
rapidjson
Debian:13
before 1.1.0+dfsg2-7.4
1.1.0+dfsg2-7.4
rapidjson
Debian:14
before 1.1.0+dfsg2-7.4
1.1.0+dfsg2-7.4
rapidjson
Mageia:9
before 1.1.0-6.1.mga9
1.1.0-6.1.mga9
rapidjson
openEuler:24.03-LTS
before 1.1.0-13.oe2403
1.1.0-13.oe2403
rapidjson
openEuler:22.03-LTS-SP4
before 1.1.0-12.oe2203sp4
1.1.0-12.oe2203sp4
rapidjson
openEuler:22.03-LTS-SP1
before 1.1.0-11.oe2203sp1
1.1.0-11.oe2203sp1
rapidjson
openEuler:22.03-LTS-SP3
before 1.1.0-12.oe2203sp3
1.1.0-12.oe2203sp3
rapidjson
openEuler:20.03-LTS-SP4
before 1.1.0-12.oe2003sp4
1.1.0-12.oe2003sp4
rapidjson
Ubuntu:Pro:16.04:LTS
before 0.12~git20141031-3ubuntu0.1~esm1, plus listed versions
0.12~git20141031-3
0.12~git20141031-3ubuntu0.1~esm1
rapidjson
Ubuntu: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
rapidjson
Ubuntu: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
rapidjson
Ubuntu: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
rapidjson
Ubuntu: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

History
RecordedChangedSources
factsOSV
affected, aliases, referencesOSV
aliases, publishedEUVD
first indexedCVE 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

Show 9 moreShow less
MoveEnter Open