cve.bz

CVE-2024-38517 tencent rapidjson: Integer Underflow (Wrap or Wraparound)

7.8 highEPSS 0.4%

High (7.8) in tencent rapidjson. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-07-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-191 Integer Underflow (Wrap or Wraparound)
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-38517 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38517?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38517?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-38517 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Tencent RapidJSON<= 1.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12rapidjsonno fix listedDEBIAN-CVE-2024-38517
Debian13, 14rapidjson1.1.0+dfsg2-7.4DEBIAN-CVE-2024-38517
UbuntuPro:16.04:LTSrapidjson0.12~git20141031-3ubuntu0.1~esm1UBUNTU-CVE-2024-38517 USN-7125-1
UbuntuPro:18.04:LTSrapidjson1.1.0+dfsg2-3ubuntu0.1~esm1UBUNTU-CVE-2024-38517 USN-7125-1
UbuntuPro:20.04:LTSrapidjson1.1.0+dfsg2-5ubuntu1+esm1UBUNTU-CVE-2024-38517 USN-7125-1
UbuntuPro:22.04:LTSrapidjson1.1.0+dfsg2-7ubuntu0.1~esm1UBUNTU-CVE-2024-38517 USN-7125-1
UbuntuPro:24.04:LTSrapidjson1.1.0+dfsg2-7.2ubuntu0.1~esm1UBUNTU-CVE-2024-38517 USN-7125-1
Alpinev3.20rapidjson1.1.0-r6ALPINE-CVE-2024-38517
Alpinev3.21, v3.22, v3.23 and 1 morerapidjson1.1.0-r7ALPINE-CVE-2024-38517
Azure Linux2ceph16.2.10-5AZL-43320
Azure Linux2openccno fix listedAZL-43543
Azure Linux2rapidjson1.1.0-8AZL-43300
Azure Linux3openccno fix listedAZL-45330
Azure Linux3rapidjson1.1.0-8AZL-43245
Alpaquita23rapidjson1.1.0-r5BELL-CVE-2024-38517
Alpaquitastreamrapidjson1.1.0-r7BELL-CVE-2024-38517

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Exploiting this flaw requires an attacker tricking a user into processing or parsing malicious JSON text. As this vulnerability requires user interaction, it has been rated with a moderate severity.

Red Hat's mitigation

Do not process or parse untrusted JSON text with rapidjson.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10mysql8.4Not affected
Red Hat Enterprise Linux AI (RHEL AI)rapidjsonNot affected
Red Hat Openshift Data Foundation 4odf4/mcg-core-rhel9Not affected
Red Hat OpenStack Platform 17.1leathermanWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-38517.

References

Check your stackJSON