Affected versions
Ubuntu22.04:LTS/cjson
- Affected versions
- <1.7.15-1ubuntu0.1
- Fixed version
- 1.7.15-1ubuntu0.1
Ubuntu25.10/cjson
- Affected versions
- <1.7.18-3.1ubuntu0.1
- Fixed version
- 1.7.18-3.1ubuntu0.1
UbuntuPro:20.04:LTS/cjson
- Affected versions
- <1.7.10-1.1ubuntu0.1~esm1
- Fixed version
- 1.7.10-1.1ubuntu0.1~esm1
UbuntuPro:24.04:LTS/cjson
- Affected versions
- <1.7.17-1ubuntu0.1~esm3
- Fixed version
- 1.7.17-1ubuntu0.1~esm3
Description
cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted data via malformed JSON pointer strings containing alphanumeric characters.
Links
- https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef
- https://github.com/DaveGamble/cJSON/pull/957
- https://ubuntu.com/security/CVE-2025-57052
- https://ubuntu.com/security/notices/USN-7973-1
- https://www.cve.org/CVERecord?id=CVE-2025-57052
- https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability

