8.7 HIGH
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): None (N)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Vulnerable System Impact Confidentiality (VC): None (N)
- Vulnerable System Impact Integrity (VI): High (H)
- Vulnerable System Impact Availability (VA): None (N)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): None (N)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Vulnerable System Impact Confidentiality (MVC): None (N)
- Modified Vulnerable System Impact Integrity (MVI): High (H)
- Modified Vulnerable System Impact Availability (MVA): None (N)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
Activity log
- Created suggestion
cJSON 1.7.19 Wrong-Key Modification via JSON Pointer Escape Decoding
cJSON versions 1.5.0 through 1.7.19 contain an incorrectly-resolved name or reference vulnerability in the decode_pointer_inplace() function within cJSON_Utils.c that allows unauthenticated attackers to cause JSON Patch operations to target wrong object keys by supplying crafted JSON Pointer escape sequences (~0 or ~1) in patch paths. Attackers can submit malicious RFC 6902 JSON Patch input to applications using cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() to silently corrupt data or delete unintended keys, potentially bypassing authorization controls in applications that rely on JSON Patch for access-controlled data modification.
References
-
Product Repository product
-
https://www.vulncheck.com/advisories/cjson-wrong-key-modification-via-json-poin… third-party-advisory
Affected products
- =<1.7.19
Matching in nixpkgs
pkgs.cjson
Ultralightweight JSON parser in ANSI C
pkgs.fracjson
JSON formatter that produces compact, highly readable output
pkgs.luaPackages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua51Packages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua52Packages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua53Packages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua54Packages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua55Packages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.luajitPackages.cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.luaPackages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua51Packages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua52Packages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua53Packages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua54Packages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.lua55Packages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
pkgs.luajitPackages.lua-cjson
A fast JSON encoding/parsing module
-
nixos-unstable 2.1.0.10-1
- nixpkgs-unstable 2.1.0.10-1
- nixos-unstable-small 2.1.0.10-1
-
nixos-26.05 2.1.0.10-1
- nixos-26.05-small 2.1.0.10-1
- nixpkgs-26.05-darwin 2.1.0.10-1
Package maintainers
-
@matthiasbeyer Matthias Beyer <mail@beyermatthias.de>
-
@Allsimon Allegraud Simon <simon.allegraud@gmail.com>