Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation
Vulnerability Description
cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c. For a replace operation that is missing its value member, or a move operation whose destination path cannot be resolved, the existing target member is detached and deleted before the operation is fully validated, so the target document is mutated while cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() returns a failure status. An attacker who can supply the patch document can destroy addressable members of the target document even though the API reports that the patch failed, defeating the all-or-nothing behavior callers rely on to reject bad patches.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Vulnerability Type
不正确的行为次序
Vulnerability Title
davegamble cjson 处理逻辑错误漏洞
Vulnerability Description
davegamble cJSON是davegamble个人开发者开源的一款轻量级的开源JSON解析器。 davegamble cjson 1.7.19及之前版本存在处理逻辑错误漏洞,该漏洞源于apply_patch()函数对JSON Patch操作的非原子处理,可能导致攻击者在操作验证失败时仍能破坏目标文档的可寻址成员。
CVSS Information
N/A
Vulnerability Type
N/A