CVE-2024-38517 Tencent RapidJSON include/rapidjson/reader.h GenericReader::ParseNumber() Function Template Exponent Parsing Integer Underflow
MediumCVSS 6.8
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
11 packages: 9 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/rapidjson(Debian 12) | = 1.1.0+dfsg2-7.1; = 1.1.0+dfsg2-7.2; = 1.1.0+dfsg2-7.3; = 1.1.0+dfsg2-7.4 +2 more | No fix listed | No fix yet |
| alpine/rapidjson(Alpine v3.20) | < 1.1.0-r6 | 1.1.0-r6 | Fixed |
| alpine/rapidjson(Alpine v3.21) | < 1.1.0-r7 | 1.1.0-r7 | Fixed |
| alpine/rapidjson(Alpine v3.22) | < 1.1.0-r7 | 1.1.0-r7 | Fixed |
| alpine/rapidjson(Alpine v3.23) | < 1.1.0-r7 | 1.1.0-r7 | Fixed |
| alpine/rapidjson(Alpine v3.24) | < 1.1.0-r7 | 1.1.0-r7 | Fixed |
| debian/rapidjson(Debian 13) | < 1.1.0+dfsg2-7.4 | 1.1.0+dfsg2-7.4 | Fixed |
| debian/rapidjson(Debian 14) | < 1.1.0+dfsg2-7.4 | 1.1.0+dfsg2-7.4 | Fixed |
| ubuntu/rapidjson(Ubuntu 22.04) | < 1.1.0+dfsg2-7ubuntu0.1~esm1 | 1.1.0+dfsg2-7ubuntu0.1~esm1 | Fixed |
| ubuntu/rapidjson(Ubuntu 24.04) | < 1.1.0+dfsg2-7.2ubuntu0.1~esm1 | 1.1.0+dfsg2-7.2ubuntu0.1~esm1 | Fixed |
| Tencent rapidjson | = <= 1.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/rapidjson(Debian:12) | All versions | No fix listed |
| debian/rapidjson(Debian:12) | = 1.1.0+dfsg2-7.1 | No fix listed |
| debian/rapidjson(Debian:12) | = 1.1.0+dfsg2-7.2 | No fix listed |
| debian/rapidjson(Debian:12) | = 1.1.0+dfsg2-7.3 | No fix listed |
| debian/rapidjson(Debian:12) | = 1.1.0+dfsg2-7.4 | No fix listed |
| debian/rapidjson(Debian:12) | = 1.1.0+dfsg2-7.6 | No fix listed |
| debian/rapidjson(Debian:13) | < 1.1.0+dfsg2-7.4 | 1.1.0+dfsg2-7.4 |
| debian/rapidjson(Debian:14) | < 1.1.0+dfsg2-7.4 | 1.1.0+dfsg2-7.4 |
| ubuntu/rapidjson(Ubuntu:22.04) | < 1.1.0+dfsg2-7ubuntu0.1~esm1 | 1.1.0+dfsg2-7ubuntu0.1~esm1 |
| Tencent rapidjson | = <= 1.1.0 | No fix listed |
| alpine/rapidjson(Alpine:v3.20) | < 1.1.0-r6 | 1.1.0-r6 |
| alpine/rapidjson(Alpine:v3.21) | < 1.1.0-r7 | 1.1.0-r7 |
| alpine/rapidjson(Alpine:v3.22) | < 1.1.0-r7 | 1.1.0-r7 |
| alpine/rapidjson(Alpine:v3.23) | < 1.1.0-r7 | 1.1.0-r7 |
| alpine/rapidjson(Alpine:v3.24) | < 1.1.0-r7 | 1.1.0-r7 |
| ubuntu/rapidjson(Ubuntu:24.04) | < 1.1.0+dfsg2-7.2ubuntu0.1~esm1 | 1.1.0+dfsg2-7.2ubuntu0.1~esm1 |
References
- Debian Security Tracker CVE-2024-38517 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7125-1 vendor-advisory
- www.cve.org
- 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
- security.netapp.com
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking