CVE-2025-57052: cJSON 1.5.0 through 1.7.18 allows out-of-bounds access via the decode_array_index_from_pointer function in cJS
CVE-2025-57052 is a critical-severity flaw (CVSS 9.8) affecting cjson. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: DhruvP2205/cjson-rust-port (0 stars)
- Write-up: x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-57052?
cjson: upgrade to newer than 1.7.18. Exact commands for each OS are on this page.
Is CVE-2025-57052 being exploited?
CVE-2025-57052 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-57052 affect?
CVE-2025-57052 affects cjson. Severity is critical (CVSS 9.8). 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 string
How urgent is CVE-2025-57052?
Priority 61/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-16554 HIGH 7.8 DOWNGRADE cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit pla
- CVE-2026-67215 HIGH 7.5 UPGRADE cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC
- CVE-2026-67216 MEDIUM 5.9 UPGRADE cJSON through 1.7.19 contains an inefficient algorithmic complexity flaw in cJSON_Compare()
- CVE-2026-67217 MEDIUM 5.3 UPGRADE cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c
- CVE-2024-31755 HIGH 7.6 DOWNGRADE cJSON v1.7.17 was discovered to contain a segmentation violation, which can trigger through the second paramet