Skip to main content

Tencent RapidJSON CVE-2026-137415

| EUVDEUVD-2026-136824 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-11-26 VulDB
6.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit oversized string to serializing service
  2. Delivery
    RapidJSON Writer::WriteString computes 2 + length*6
  3. Exploit
    32-bit SizeType multiplication overflows
  4. Execution
    PutReserve under-reserves output buffer
  5. Impact
    Escaped 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 length * 6 (or length * 12 for the surrogate-pair branch) - on the order of ~715 million characters or more. Affected: Tencent RapidJSON up to and including 1.1.0. Limiting factors: the application must both accept and serialize untrusted data of multi-hundred-megabyte scale, the flaw is not reachable through the parser, and the confirmed per-impact severity is low (VC/VI/VA:L); memory and bandwidth needed to deliver such input further constrain real-world exploitation.

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 length * 6 / length * 12, which means the pre-patch flaw is a 32-bit SizeType multiplication that can wrap only when the string being written is enormous (on the order of ~715 million characters for the ×6 path), causing PutReserve to under-reserve and the subsequent escaped-write to overflow the heap buffer. The VulDB-assigned CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N, VC:L/VI:L/VA:L, score 6.9) rates this network-reachable and low-complexity, but that AC:L is hard to reconcile with the actual trigger condition, which requires an application to serialize a multi-hundred-megabyte attacker-controlled string - a demanding precondition that argues for high attack complexity. There is no KEV listing, no EPSS score was supplied, and no public exploit or PoC reference is present (only the issue, PR, and patch commit). The vuln.today decision label is 'this_month', not act_now/emergency. Net: a real but low-urgency library hardening fix whose network/low-complexity framing from the single reporting source (VulDB) overstates practical exploitability; treat it as routine dependency patching rather than an emergency, while noting the memory-corruption class means the ceiling is not purely theoretical.

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 2 + length * 6 computation in WriteString wraps, so PutReserve under-reserves the output buffer and the escaped-character write overflows the heap allocation. Reachability depends entirely on the host application exposing a serialization path over attacker-controlled, very large input. No public exploit identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

RapidJSON 1.1.0
RapidJSON 1.0

Affected Packages

euvd rapidjson no fix

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

Vendor (VulDB) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.6 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 69% exploitable
Prevalence
High
widely embedded header-only C++ JSON library used across many applications
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-22688 CRITICAL POC
9.9 Jan 10

WeKnora LLM framework (before 0.2.5) allows authenticated users to inject MCP stdio commands that the server executes as

CVE-2026-30861 CRITICAL POC
9.9 Mar 07

OS command injection in WeKnora from version 0.2.5 allows authenticated users to execute arbitrary system commands. CVSS

CVE-2026-30860 CRITICAL POC
9.9 Mar 07

SQL injection in WeKnora LLM document understanding framework allows authenticated users to extract arbitrary database c

CVE-2023-30363 CRITICAL POC
9.8 Apr 26

vConsole v3.15.0 was discovered to contain a prototype pollution due to incorrect key and value resolution in setOptions

CVE-2026-30855 HIGH POC
8.8 Mar 07

Insufficient authorization checks in WeKnora's tenant management endpoints allow any authenticated user to read, modify,

CVE-2024-40433 HIGH POC
8.8 Jul 26

Insecure Permissions vulnerability in Tencent wechat v.8.0.37 allows an attacker to escalate privileges via the web-view

CVE-2024-22873 HIGH POC
8.1 Feb 26

Tencent Blueking CMDB v3.2.x to v3.9.x was discovered to contain a Server-Side Request Forgery (SSRF) via the event subs

CVE-2021-33879 HIGH POC
8.1 Jun 06

Tencent GameLoop before 4.1.21.90 downloaded updates over an insecure HTTP connection. Rated high severity (CVSS 8.1), t

CVE-2023-34312 HIGH POC
7.8 Jun 01

In Tencent QQ through 9.7.8.29039 and TIM through 3.4.7.22084, QQProtect.exe and QQProtectEngine.dll do not validate poi

CVE-2019-13125 HIGH POC
7.8 Jul 01

HaboMalHunter through 2.0.0.3 in Tencent Habo allows attackers to evade dynamic malware analysis via PIE compilation. Ra

CVE-2025-56230 HIGH POC
7.5 Nov 04

Tencent Docs Desktop 3.9.20 and earlier suffers from Missing SSL Certificate Validation in the update component. Rated h

CVE-2023-52286 HIGH POC
7.5 Dec 31

Tencent tdsqlpcloud through 1.8.5 allows unauthenticated remote attackers to discover database credentials via an index.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy