CVE-2024-39684 Affecting rapidjson package, versions <1.1.0+dfsg2-7.2ubuntu0.1~esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.42% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2404-RAPIDJSON-7444234
  • published17 Sept 2025
  • disclosed9 Jul 2024

Introduced: 9 Jul 2024

CVE-2024-39684  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.04 rapidjson to version 1.1.0+dfsg2-7.2ubuntu0.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rapidjson package and not the rapidjson package as distributed by Ubuntu. See How to fix? for Ubuntu:24.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1