
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-57052 is an out-of-bounds access vulnerability in the cJSON library affecting versions 1.5.0 through 1.7.18. The flaw resides in the decode_array_index_from_pointer function within cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricted memory via malformed JSON pointer strings containing alphanumeric characters. It was publicly disclosed on September 3, 2025, and carries a CVSS v3.1 base score of 9.8 (Critical) (Red Hat Advisory, Red Hat Bugzilla).
The root cause is classified as CWE-125 (Out-of-bounds Read) and CWE-129 (Improper Validation of Array Index). The decode_array_index_from_pointer function in cJSON_Utils.c fails to properly validate array indices derived from JSON pointer strings, allowing an attacker to supply crafted alphanumeric characters in a JSON pointer that bypass bounds checks and cause the library to read (or potentially write) outside the intended memory region. Exploitation requires no authentication and no user interaction — an attacker need only supply a malformed JSON pointer string to an application that processes it using the vulnerable cJSON library. A technical write-up and proof-of-concept are publicly available (x-0r PoC).
Successful exploitation can result in unauthorized access to restricted memory, potential disclosure of sensitive data, memory corruption, and in the worst case, arbitrary code execution or application crashes. The vulnerability affects confidentiality, integrity, and availability at a high level, as an attacker could read out-of-bounds memory, corrupt data structures, or destabilize the host application. Given cJSON's widespread use as an embedded C JSON library across IoT devices, network appliances, and server-side applications, the blast radius is broad and may facilitate lateral movement in environments where the library processes untrusted network input (Red Hat Advisory, x-0r PoC).
decode_array_index_from_pointer in cJSON_Utils.c.cJSON_Utils.c or the decode_array_index_from_pointer function; unexpected process restarts of services that use cJSON.libcjson.so, cJSON_Utils.c build artifacts) on systems that have not been patched.Upgrade the cJSON library to a version beyond 1.7.18 as the primary remediation. Red Hat has issued patches for affected products including Red Hat Satellite 6.15 (RHSA-2025:17614), 6.16 (RHSA-2025:17613), and 6.17 (RHSA-2025:17606). Debian, SUSE, Ubuntu, and openSUSE have also released updated packages for their respective distributions. As an interim workaround, implement strict input validation for JSON pointer strings at the application layer before passing them to cJSON, and consider restricting network access to systems running vulnerable versions until patching is complete (Red Hat Bugzilla, Red Hat Advisory).
Red Hat triaged the vulnerability at high severity and issued multiple errata for Red Hat Satellite products within approximately five weeks of disclosure. Microsoft acknowledged the vulnerability in its September 2025 Patch Tuesday update guide. Rapid7 included CVE-2025-57052 in its September 2025 Patch Tuesday analysis. Community discussion has been observed on Bluesky and Reddit (notably in the Fortinet community regarding FortiClientEMS), reflecting broad concern about the library's wide deployment footprint (Rapid7 Blog, Microsoft MSRC).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."