CVE-2024-38517Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function…
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.
What to do
Fixed builds are available from Alpine, Debian, Microsoft: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | rapidjson | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rapidjson | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | rapidjson | Fix pending | 1.1.0+dfsg2-7.2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-38517 |
| Ubuntu 22.04 | rapidjson | Fix pending | 1.1.0+dfsg2-7ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-38517 |
| Ubuntu 20.04 | rapidjson | Fix pending | 1.1.0+dfsg2-5ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-38517 |
| Ubuntu 18.04 | rapidjson | Fix pending | 1.1.0+dfsg2-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-38517 |
| Ubuntu 16.04 | rapidjson | Fix pending | 0.12~git20141031-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-38517 |
| Debian 14 | rapidjson | Fixed | 1.1.0+dfsg2-7.4 | DEBIAN-CVE-2024-38517 |
| Debian 13 | rapidjson | Fixed | 1.1.0+dfsg2-7.4 | DEBIAN-CVE-2024-38517 |
| Debian 12 | rapidjson | Fix pending | DEBIAN-CVE-2024-38517 | |
| Red Hat Enterprise Linux 10 | mysql8.4 | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-common | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-errmsg | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-server | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-test | Not affected | ||
| Red Hat Enterprise Linux 10 | mysql8.4-test-data | Not affected | ||
| Windows Server 2022 | windows | Fixed | 10.0.20348.2582 KB5040437 | MSRC-2024-Jul |
| Windows Server 2019 | windows | Fixed | 10.0.17763.6054 KB5040430 | MSRC-2024-Jul |
| Windows Server 2016 | windows | Fixed | 10.0.14393.7159 KB5040434 | MSRC-2024-Jul |
| Windows 10 Version 1809 (x64) | windows | Fixed | 10.0.17763.6054 KB5040430 | MSRC-2024-Jul |
| Windows 10 Version 1809 (x86) | windows | Fixed | 10.0.17763.6054 KB5040430 | MSRC-2024-Jul |
| Windows 10 Version 1607 (x64) | windows | Fixed | 10.0.14393.7159 KB5040434 | MSRC-2024-Jul |
| Windows 10 Version 1607 (x86) | windows | Fixed | 10.0.14393.7159 KB5040434 | MSRC-2024-Jul |
| Windows Server, version 23H2 | windows | Fixed | 10.0.25398.1009 KB5040438 | MSRC-2024-Jul |
| Windows 10 Version 21H2 (arm64) | windows | Fixed | 10.0.19044.4651 KB5040427 | MSRC-2024-Jul |
| Windows 10 Version 21H2 (x64) | windows | Fixed | 10.0.19044.4651 KB5040427 | MSRC-2024-Jul |
| Windows 10 Version 21H2 (x86) | windows | Fixed | 10.0.19044.4651 KB5040427 | MSRC-2024-Jul |
| Windows 10 Version 22H2 (arm64) | windows | Fixed | 10.0.19045.4651 KB5040427 | MSRC-2024-Jul |
| Windows 10 Version 22H2 (x64) | windows | Fixed | 10.0.19045.4651 KB5040427 | MSRC-2024-Jul |
| Windows 10 Version 22H2 (x86) | windows | Fixed | 10.0.19045.4651 KB5040427 | MSRC-2024-Jul |
| Windows 11 Version 21H2 (arm64) | windows | Fixed | 10.0.22000.3079 KB5040431 | MSRC-2024-Jul |
| Windows 11 Version 21H2 (x64) | windows | Fixed | 10.0.22000.3079 KB5040431 | MSRC-2024-Jul |
| Windows 11 Version 22H2 (arm64) | windows | Fixed | 10.0.22621.3880 KB5040442 | MSRC-2024-Jul |
| Windows 11 Version 22H2 (x64) | windows | Fixed | 10.0.22621.3880 KB5040442 | MSRC-2024-Jul |
| Windows 11 Version 23H2 (arm64) | windows | Fixed | 10.0.22631.3880 KB5040442 | MSRC-2024-Jul |
| Windows 11 Version 23H2 (x64) | windows | Fixed | 10.0.22631.3880 KB5040442 | MSRC-2024-Jul |
| Alpine Linux 3.24 | rapidjson | Fixed | 1.1.0-r7 | ALPINE-CVE-2024-38517 |
| Alpine Linux 3.23 | rapidjson | Fixed | 1.1.0-r7 | ALPINE-CVE-2024-38517 |
| Alpine Linux 3.22 | rapidjson | Fixed | 1.1.0-r7 | ALPINE-CVE-2024-38517 |
| Alpine Linux 3.21 | rapidjson | Fixed | 1.1.0-r7 | ALPINE-CVE-2024-38517 |
| Alpine Linux 3.20 | rapidjson | Fixed | 1.1.0-r6 | ALPINE-CVE-2024-38517 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Tencent RapidJSON: affected: <= 1.1.0
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-38517
- https://github.com/Tencent/rapidjson/pull/1261/commits/8269bc2bc289e9d343bae51cdf6d23ef0950e001
- https://github.com/fmalita/rapidjson/commit/8269bc2bc289e9d343bae51cdf6d23ef0950e001
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.