Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Tencent | RapidJSON | <= 1.1.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rapidjson | 1.1.0+dfsg2-7.4 | — |
| Debian 13 | rapidjson | 1.1.0+dfsg2-7.4 | — |
| Debian 12 | rapidjson | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | rapidjson | 1.1.0+dfsg2-7.2ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu Pro 22.04 LTS | rapidjson | 1.1.0+dfsg2-7ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu Pro 20.04 LTS | rapidjson | 1.1.0+dfsg2-5ubuntu1+esm1 | USN-7125-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | rapidjson | 1.1.0+dfsg2-3ubuntu0.1~esm1 | USN-7125-1 |
| Ubuntu Pro 16.04 LTS | rapidjson | 0.12~git20141031-3ubuntu0.1~esm1 | USN-7125-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | rapidjson | 1.1.0-r7 | — |
| Alpine v3.23 | rapidjson | 1.1.0-r7 | — |
| Alpine v3.22 | rapidjson | 1.1.0-r7 | — |
| Alpine v3.21 | rapidjson | 1.1.0-r7 | — |
| Alpine v3.20 | rapidjson | 1.1.0-r6 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | rapidjson-doc +1 | 1.1.0-16.amzn2023.0.3 | ALAS2023-2024-684 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | opencc | No fix yet | — |
| Azure Linux 3 | rapidjson | 1.1.0-8 | — |
| Azure Linux 2 (CBL-Mariner) | ceph | 16.2.10-5 | — |
| Azure Linux 2 (CBL-Mariner) | opencc | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | rapidjson | 1.1.0-8 | — |
Advisories 5
- USN-7125-1 rapidjson vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- SCA-2025-0006 Vulnerability affecting picoScan and multiScan SICK PSIRT · Apr 28, 2025
- WID-SEC-2024-1579 Microsoft Windows: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 5, 2024
- ALAS2023-2024-684 Moderate: rapidjson security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 6, 2024
- NCSC-2024-0279 Kwetsbaarheden verholpen in Microsoft Windows NCSC-NL (Netherlands) · Jul 9, 2024