Skip to content
Fencer Vulns
high 7.8

CVE-2024-39684 json

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

published 2024-07-09 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-38186

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 36%
public exploits
0
none known

Summary

Tencent RapidJSON is vulnerable to privilege escalation due to an integer overflow 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 overflow vulnerability (when the file is parsed), leading to elevation of privilege.

Patch / fix

  • rapidjson Ubuntu Pro 16.04 LTS 0.12~git20141031-3ubuntu0.1~esm2
  • rapidjson Ubuntu Pro 18.04 LTS 1.1.0+dfsg2-3ubuntu0.1~esm2
  • rapidjson Ubuntu Pro 20.04 LTS 1.1.0+dfsg2-5ubuntu1+esm2
  • rapidjson Ubuntu Pro 22.04 LTS 1.1.0+dfsg2-7ubuntu0.1~esm2
  • rapidjson Ubuntu Pro 24.04 LTS 1.1.0+dfsg2-7.2ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2024-39684

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 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-43255AZL-43297AZL-43315

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-39684 updated cvss 7.8

rapidjson: pivilege escalation via integer overflow in GenericReader::ParseNumber()

  • Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel8
    affected: workaround, no fix available
  • Red Hat OpenStack Platform 17.1 leatherman
    affected: workaround, no fix planned “Will not fix”

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
total
Assessed
2 y ago

Exploit prediction

0.42% chance of exploitation in the next 30 days, higher than 36% 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-190 Integer Overflow or Wraparound

References

Sources

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.