CVE-2024-38517 json
Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
published 2024-07-09 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-37387
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rapidjson Debian 14, Debian 13 1.1.0+dfsg2-7.4
debian advisories DEBIAN-CVE-2024-38517
- rapidjson Ubuntu Pro 16.04 LTS 0.12~git20141031-3ubuntu0.1~esm1
- rapidjson Ubuntu Pro 18.04 LTS 1.1.0+dfsg2-3ubuntu0.1~esm1
- rapidjson Ubuntu Pro 20.04 LTS 1.1.0+dfsg2-5ubuntu1+esm1
- rapidjson Ubuntu Pro 22.04 LTS 1.1.0+dfsg2-7ubuntu0.1~esm1
- rapidjson Ubuntu Pro 24.04 LTS 1.1.0+dfsg2-7.2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-38517
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rapidjson Alpine 3.20 1.1.0-r6
- rapidjson Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 1.1.0-r7
alpine advisories ALPINE-CVE-2024-38517
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rapidjson CBL-Mariner 2.0, Azure Linux 3.0 1.1.0-8
- ceph CBL-Mariner 2.0 16.2.10-5
azure linux advisories AZL-43245AZL-43300AZL-43320
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-38517 updated cvss 7.8
rapidjson: privilege escalation via integer underflow in GenericReader::ParseNumber()
-
Red Hat OpenStack Platform 17.1 leathermanaffected: workaround, no fix planned “Do not process or parse untrusted JSON text with rapidjson.”
-
Red Hat Enterprise Linux 10 mysql8.4 Red Hat Enterprise Linux AI (RHEL AI) rapidjson Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | 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 |
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected products
- Tencent RapidJSON
Classification
- Weakness
-
- CWE-191 Integer Underflow (Wrap or Wraparound)
References
Sources
- CVE List CVE-2024-38517
- NVD CVE-2024-38517
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.