Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit oversized string to serializing service
-
DeliveryRapidJSON Writer::WriteString computes 2 + length*6
-
Exploit32-bit SizeType multiplication overflows
-
ExecutionPutReserve under-reserves output buffer
-
ImpactEscaped write overflows heap allocation
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Triggering requires the host application to pass an attacker-controlled string into RapidJSON's Writer::WriteString (the JSON serialization/output path, not parsing) whose length is large enough to overflow the 32-bit SizeType multiplication |
| Impact | This is a CWE-190 integer-overflow in RapidJSON's serialization path (Writer::WriteString), not its parser. The source diff (PR #2416) shows the fix is purely casting the string length to size_t before |
| Exploit ScenarioDerived | An application that uses RapidJSON ≤1.1.0 to serialize attacker-influenced data receives and emits a string long enough (roughly ≥715 million characters) that the 32-bit |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Integer overflow in Tencent RapidJSON's serialization path (Writer::WriteString) affects versions up to and including 1.1.0, where a length value large enough to overflow the 32-bit SizeType multiplication used in the buffer reservation calculation can lead to a buffer overflow. The flaw is not reachable through the parser: it requires the host application to pass an attacker-controlled string into the JSON writer and serialize it, with the input on the order of hundreds of millions of characters, so the practical exposure is confined to applications that both accept and re-emit untrusted data at that scale. Severity is assessed as low per impact (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L), no public exploit code or confirmed active exploitation is identified, and an upstream fix commit (297637bc0a0f00dc504dbc1a47ebdaa577f8ae19), delivered via pull request 2416, is available.
RemediationAI
Apply the upstream fix commit 297637bc0a0f00dc504dbc1a47ebdaa577f8ae19, merged through pull request https://github.com/Tencent/rapidjson/pull/2416, which casts the length argument to size_t before the *6 and *12 multiplications in Writer::WriteString; since RapidJSON is header-only, updating the vendored header (include/rapidjson/writer.h) and rebuilding is sufficient, and no tagged release containing the fix is independently confirmed in the available data, so pinning to the commit or carrying the one-line backport is the practical option. As an interim measure, applications can reject or truncate input strings above a size threshold well below the overflow point (e.g. cap serialized string length in the hundreds of megabytes) or avoid serializing untrusted data through Writer::WriteString entirely, both of which trade functionality for safety by constraining legitimate large payloads. Patch status: upstream fix available (PR/commit); released patched version not independently confirmed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
RapidJSON is a header-only C++ JSON library; its Writer class serializes DOM values or streamed events back to JSON text. In Writer::WriteString, when the output stream has no known length or when string escaping is required, the code calls PutReserve(*os_, 2 + length * 6) for the escaping path and 2 + length * 12 for the surrogate-pair path. The length parameter is of type SizeType, which defaults to unsigned 32-bit; the multiplication by 6 or 12 is therefore performed in 32-bit arithmetic and can wrap when length is large (roughly 715 million characters for the *12 branch, and higher for *6), producing a small reserved size. The subsequent writes then exceed the reserved buffer, giving a heap/stack buffer overflow in the caller's stream implementation. CWE-190 (Integer Overflow or Wraparound) is the root cause class. The upstream patch fixes this by casting length to size_t before multiplication (static_cast<size_t>(length) * 6 / * 12), forcing 64-bit arithmetic on 64-bit platforms. Because this is in the writer/output path rather than the reader/parser path, only applications that serialize attacker-influenced strings of extreme length are affected.
Know when Tencent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Reachable over the network with no auth, but the overflow needs an attacker-controlled string of ~700M+ characters on the write path, so AC:H; memory-corruption impacts kept low per the limited evidence.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A security flaw has been discovered in Tencent RapidJSON up to 1.1.0. This affects the function Writer::WriteString in the library include/rapidjson/writer.h. Performing a manipulation of the argument length results in integer overflow. The attack may be initiated remotely. The patch is named 297637bc0a0f00dc504dbc1a47ebdaa577f8ae19. To fix this issue, it is recommended to deploy a patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
WeKnora LLM framework (before 0.2.5) allows authenticated users to inject MCP stdio commands that the server executes as
OS command injection in WeKnora from version 0.2.5 allows authenticated users to execute arbitrary system commands. CVSS
SQL injection in WeKnora LLM document understanding framework allows authenticated users to extract arbitrary database c
vConsole v3.15.0 was discovered to contain a prototype pollution due to incorrect key and value resolution in setOptions
Insufficient authorization checks in WeKnora's tenant management endpoints allow any authenticated user to read, modify,
Insecure Permissions vulnerability in Tencent wechat v.8.0.37 allows an attacker to escalate privileges via the web-view
Tencent Blueking CMDB v3.2.x to v3.9.x was discovered to contain a Server-Side Request Forgery (SSRF) via the event subs
Tencent GameLoop before 4.1.21.90 downloaded updates over an insecure HTTP connection. Rated high severity (CVSS 8.1), t
In Tencent QQ through 9.7.8.29039 and TIM through 3.4.7.22084, QQProtect.exe and QQProtectEngine.dll do not validate poi
HaboMalHunter through 2.0.0.3 in Tencent Habo allows attackers to evade dynamic malware analysis via PIE compilation. Ra
Tencent Docs Desktop 3.9.20 and earlier suffers from Missing SSL Certificate Validation in the update component. Rated h
Tencent tdsqlpcloud through 1.8.5 allows unauthenticated remote attackers to discover database credentials via an index.
EUVD-2026-136824
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB