rapidjson — security advisory
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.
- Products
- rapidjson
- Affected versions
- 0.12~git20141031+dfsg-1, 0.12~git20141031-3, 0.12~git20141031-3ubuntu0.1~esm1, 1.1.0+dfsg2-3, 1.1.0+dfsg2-3ubuntu0.1~esm1, 1.1.0+dfsg2-5, 1.1.0+dfsg2-5ubuntu1, 1.1.0+dfsg2-5ubuntu1+esm1, 1.1.0+dfsg2-7, 1.1.0+dfsg2-7.1, 1.1.0+dfsg2-7.2, 1.1.0+dfsg2-7.2ubuntu0.1~esm1, 1.1.0+dfsg2-7.3ubuntu1, 1.1.0+dfsg2-7.6ubuntu1, 1.1.0+dfsg2-7ubuntu0.1~esm1
- Fixed versions
- 0.12~git20141031-3ubuntu0.1~esm2, 1.1.0+dfsg2-3ubuntu0.1~esm2, 1.1.0+dfsg2-5ubuntu1+esm2, 1.1.0+dfsg2-7.2ubuntu0.1~esm2, 1.1.0+dfsg2-7ubuntu0.1~esm2
- CVEs
- CVE-2024-39684
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:09 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2024-39684
rapidjson
Fixed versions: 0.12~git20141031-3ubuntu0.1~esm2
rapidjson
Fixed versions: 1.1.0+dfsg2-3ubuntu0.1~esm2
rapidjson
Fixed versions: 1.1.0+dfsg2-5ubuntu1+esm2
rapidjson
Fixed versions: 1.1.0+dfsg2-7ubuntu0.1~esm2
rapidjson
Fixed versions: 1.1.0+dfsg2-7.2ubuntu0.1~esm2
rapidjson
Fixed versions: Not specified
rapidjson
Fixed versions: Not specified
rapidjson
Fixed versions: Not specified
Complete source record
{
"id": "a04aee50673724d830b7a6111801c65a25a5e6d8ce1894d7a9afdcb316c3c4ca",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-39684",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-39684",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2024-39684",
"products": [
{
"name": {
"value": "rapidjson",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.12~git20141031-3ubuntu0.1~esm2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "0.12~git20141031-3",
"evidence": "/affected/0/versions"
},
{
"value": "0.12~git20141031-3ubuntu0.1~esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.0+dfsg2-3ubuntu0.1~esm2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "0.12~git20141031+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.0+dfsg2-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.1.0+dfsg2-3ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.0+dfsg2-5ubuntu1+esm2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1.1.0+dfsg2-5",
"evidence": "/affected/2/versions"
},
{
"value": "1.1.0+dfsg2-5ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "1.1.0+dfsg2-5ubuntu1+esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.0+dfsg2-7ubuntu0.1~esm2",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": [
{
"value": "1.1.0+dfsg2-7",
"evidence": "/affected/3/versions"
},
{
"value": "1.1.0+dfsg2-7ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.0+dfsg2-7.2ubuntu0.1~esm2",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": [
{
"value": "1.1.0+dfsg2-7.1",
"evidence": "/affected/4/versions"
},
{
"value": "1.1.0+dfsg2-7.2",
"evidence": "/affected/4/versions"
},
{
"value": "1.1.0+dfsg2-7.2ubuntu0.1~esm1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.0+dfsg2-7.3ubuntu1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.0+dfsg2-7.6ubuntu1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "rapidjson",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.0+dfsg2-7.3ubuntu1",
"evidence": "/affected/7/versions"
},
{
"value": "1.1.0+dfsg2-7.6ubuntu1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2024-39684",
"aliases": [
"UBUNTU-CVE-2024-39684"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.12~git20141031-3ubuntu0.1~esm2"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"0.12~git20141031-3",
"0.12~git20141031-3ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "0.12~git20141031-3ubuntu0.1~esm2"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0+dfsg2-3ubuntu0.1~esm2"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"0.12~git20141031+dfsg-1",
"1.1.0+dfsg2-3",
"1.1.0+dfsg2-3ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-3ubuntu0.1~esm2"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0+dfsg2-5ubuntu1+esm2"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"1.1.0+dfsg2-5",
"1.1.0+dfsg2-5ubuntu1",
"1.1.0+dfsg2-5ubuntu1+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-5ubuntu1+esm2"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0+dfsg2-7ubuntu0.1~esm2"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"1.1.0+dfsg2-7",
"1.1.0+dfsg2-7ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-7ubuntu0.1~esm2"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0+dfsg2-7.2ubuntu0.1~esm2"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"1.1.0+dfsg2-7.1",
"1.1.0+dfsg2-7.2",
"1.1.0+dfsg2-7.2ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-7.2ubuntu0.1~esm2"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.1.0+dfsg2-7.3ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-7.3ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.1.0+dfsg2-7.6ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-7.6ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rapidjson",
"purl": "pkg:deb/ubuntu/rapidjson?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.1.0+dfsg2-7.3ubuntu1",
"1.1.0+dfsg2-7.6ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-39684.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "rapidjson-dev",
"binary_version": "1.1.0+dfsg2-7.6ubuntu1"
}
]
}
}
],
"modified": "2026-10-17T12:56:38.257753047Z",
"provider": "osv",
"upstream": [
"CVE-2024-39684"
],
"references": [
"https://ubuntu.com/security/CVE-2024-39684",
"https://www.cve.org/CVERecord?id=CVE-2024-39684",
"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-39684",
"https://ubuntu.com/security/notices/USN-8189-1"
]
},
"related_cves": [
{
"value": "CVE-2024-39684",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355888,
"published_at": "2024-07-09T19:15:00+00:00"
}