CVE-2024-39684

Publication date 9 July 2024

Last updated 19 September 2025


Ubuntu priority

Cvss 3 Severity Score

7.8 · High

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
rapidjson 25.04 plucky
Vulnerable
24.10 oracular Ignored end of life, was needs-triage
24.04 LTS noble
Vulnerable
23.10 mantic Ignored end of life, was needs-triage
22.04 LTS jammy
Vulnerable
20.04 LTS focal
Vulnerable
18.04 LTS bionic
Vulnerable
16.04 LTS xenial
Vulnerable

Notes


fabian

It is unclear what the cve is about, see upstream issue: https://github.com/Tencent/rapidjson/issues/2303 However, after inspecting the git history, the following commit could be related: https://github.com/Tencent/rapidjson/commit/f5e5d47fac0f654749c4d6267015005b74643dff

Severity score breakdown

Parameter Value
Base score 7.8 · High
Attack vector Local
Attack complexity Low
Privileges required None
User interaction Required
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H