# CVE-2024-39684: Github: CVE-2024-39684 TenCent RapidJSON Elevation of Privilege Vulnerability

CVE-2024-39684 is fixed in 36 products on 2 platforms, first by KB5040434, released July 9, 2024. It is not reported as exploited, but the vendor rates exploitation more likely. Patch Radar priority: Urgent.

- Web page: https://patchblox.com/security/cve/CVE-2024-39684
- Priority: Urgent
- CVSS: 7.8 (Moderate)
- EPSS: 0.0042
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Vendor exploitability assessment: Exploitation More Likely
- Published: Jul 9, 2024
- Weakness: Integer Overflow or Wraparound
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-39684

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Microsoft | Windows 10 Version 1607 for 32-bit Systems | 14393.7159 | [KB5040434](https://patchblox.com/security/data/fix/microsoft/kb5040434.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 1607 for x64-based Systems | 14393.7159 | [KB5040434](https://patchblox.com/security/data/fix/microsoft/kb5040434.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 1809 for 32-bit Systems | 17763.6054 | [KB5040430](https://patchblox.com/security/data/fix/microsoft/kb5040430.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 1809 for x64-based Systems | 17763.6054 | [KB5040430](https://patchblox.com/security/data/fix/microsoft/kb5040430.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 21H2 for 32-bit Systems |  | [KB5040427](https://patchblox.com/security/data/fix/microsoft/kb5040427.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 21H2 for ARM64-based Systems |  | [KB5040427](https://patchblox.com/security/data/fix/microsoft/kb5040427.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 21H2 for x64-based Systems |  | [KB5040427](https://patchblox.com/security/data/fix/microsoft/kb5040427.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 22H2 for 32-bit Systems |  | [KB5040427](https://patchblox.com/security/data/fix/microsoft/kb5040427.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 22H2 for ARM64-based Systems |  | [KB5040427](https://patchblox.com/security/data/fix/microsoft/kb5040427.md) | Jul 9, 2024 |
| Microsoft | Windows 10 Version 22H2 for x64-based Systems |  | [KB5040427](https://patchblox.com/security/data/fix/microsoft/kb5040427.md) | Jul 9, 2024 |
| Microsoft | Windows 10 for 32-bit Systems | 10240.20710 | [KB5040448](https://patchblox.com/security/data/fix/microsoft/kb5040448.md) | Jul 9, 2024 |
| Microsoft | Windows 10 for x64-based Systems | 10240.20710 | [KB5040448](https://patchblox.com/security/data/fix/microsoft/kb5040448.md) | Jul 9, 2024 |
| Microsoft | Windows 11 Version 22H2 for ARM64-based Systems |  | [KB5040442](https://patchblox.com/security/data/fix/microsoft/kb5040442.md) | Jul 9, 2024 |
| Microsoft | Windows 11 Version 22H2 for x64-based Systems |  | [KB5040442](https://patchblox.com/security/data/fix/microsoft/kb5040442.md) | Jul 9, 2024 |
| Microsoft | Windows 11 Version 23H2 for ARM64-based Systems |  | [KB5040442](https://patchblox.com/security/data/fix/microsoft/kb5040442.md) | Jul 9, 2024 |
| Microsoft | Windows 11 Version 23H2 for x64-based Systems |  | [KB5040442](https://patchblox.com/security/data/fix/microsoft/kb5040442.md) | Jul 9, 2024 |
| Microsoft | Windows 11 version 21H2 for ARM64-based Systems | 22000.3079 | [KB5040431](https://patchblox.com/security/data/fix/microsoft/kb5040431.md) | Jul 9, 2024 |
| Microsoft | Windows 11 version 21H2 for x64-based Systems | 22000.3079 | [KB5040431](https://patchblox.com/security/data/fix/microsoft/kb5040431.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 R2 for x64-based Systems Service Pack 1 |  | [KB5040497](https://patchblox.com/security/data/fix/microsoft/kb5040497.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 R2 for x64-based Systems Service Pack 1 |  | [KB5040498](https://patchblox.com/security/data/fix/microsoft/kb5040498.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) |  | [KB5040497](https://patchblox.com/security/data/fix/microsoft/kb5040497.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) |  | [KB5040498](https://patchblox.com/security/data/fix/microsoft/kb5040498.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for 32-bit Systems Service Pack 2 |  | [KB5040490](https://patchblox.com/security/data/fix/microsoft/kb5040490.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for 32-bit Systems Service Pack 2 |  | [KB5040499](https://patchblox.com/security/data/fix/microsoft/kb5040499.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) |  | [KB5040490](https://patchblox.com/security/data/fix/microsoft/kb5040490.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) |  | [KB5040499](https://patchblox.com/security/data/fix/microsoft/kb5040499.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for x64-based Systems Service Pack 2 |  | [KB5040490](https://patchblox.com/security/data/fix/microsoft/kb5040490.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for x64-based Systems Service Pack 2 |  | [KB5040499](https://patchblox.com/security/data/fix/microsoft/kb5040499.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) |  | [KB5040490](https://patchblox.com/security/data/fix/microsoft/kb5040490.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) |  | [KB5040499](https://patchblox.com/security/data/fix/microsoft/kb5040499.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2012 |  | [KB5040485](https://patchblox.com/security/data/fix/microsoft/kb5040485.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2012 (Server Core installation) |  | [KB5040485](https://patchblox.com/security/data/fix/microsoft/kb5040485.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2012 R2 |  | [KB5040456](https://patchblox.com/security/data/fix/microsoft/kb5040456.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2012 R2 (Server Core installation) |  | [KB5040456](https://patchblox.com/security/data/fix/microsoft/kb5040456.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2016 | 14393.7159 | [KB5040434](https://patchblox.com/security/data/fix/microsoft/kb5040434.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2016 (Server Core installation) | 14393.7159 | [KB5040434](https://patchblox.com/security/data/fix/microsoft/kb5040434.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2019 | 17763.6054 | [KB5040430](https://patchblox.com/security/data/fix/microsoft/kb5040430.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2019 (Server Core installation) | 17763.6054 | [KB5040430](https://patchblox.com/security/data/fix/microsoft/kb5040430.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2022 | 20348.2582 | [KB5040437](https://patchblox.com/security/data/fix/microsoft/kb5040437.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2022 (Server Core installation) | 20348.2582 | [KB5040437](https://patchblox.com/security/data/fix/microsoft/kb5040437.md) | Jul 9, 2024 |
| Microsoft | Windows Server 2022, 23H2 Edition (Server Core installation) | 25398.1009 | [KB5040438](https://patchblox.com/security/data/fix/microsoft/kb5040438.md) | Jul 9, 2024 |
| Linux | rapidjson-dev Ubuntu 18.04.6 LTS (bionic) | 1.1.0+dfsg2-3ubuntu0.1~esm2 | [rapidjson-dev 1.1.0+dfsg2-3ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-rapidjson-dev-1.1.0-dfsg2-3ubuntu0.1-esm2.md) | Jul 9, 2024 |
| Linux | rapidjson-dev Ubuntu 20.04 LTS (focal) | 1.1.0+dfsg2-5ubuntu1+esm2 | [rapidjson-dev 1.1.0+dfsg2-5ubuntu1+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rapidjson-dev-1.1.0-dfsg2-5ubuntu1-esm2.md) | Jul 9, 2024 |
| Linux | rapidjson-dev Ubuntu 22.04.1 LTS (jammy) | 1.1.0+dfsg2-7ubuntu0.1~esm2 | [rapidjson-dev 1.1.0+dfsg2-7ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rapidjson-dev-1.1.0-dfsg2-7ubuntu0.1-esm2.md) | Jul 9, 2024 |
| Linux | rapidjson-dev Ubuntu 24.04.5 LTS (noble) | 1.1.0+dfsg2-7.2ubuntu0.1~esm2 | [rapidjson-dev 1.1.0+dfsg2-7.2ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-rapidjson-dev-1.1.0-dfsg2-7.2ubuntu0.1-esm2.md) | Jul 9, 2024 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
