CVE-2025-57052 Details
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.
A vulnerability in the cJSON library versions 1.5.0 through 1.7.18 allows for out-of-bounds memory access via the 'decode_array_index_from_pointer' function in 'cJSON_Utils.c'. This issue arises from improper validation of JSON pointer strings, which can be exploited by remote attackers to bypass array bounds checking and access restricted data. The vulnerability could lead to segmentation faults, privilege escalation, and denial-of-service conditions.
To address this vulnerability, the loop condition in the 'decode_array_index_from_pointer' function should be modified to correctly validate each character of the pointer string.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/09/msg00019.html | CVE | |
| https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability | [email protected] | Exploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CISA-ADP |
| CWE-129 | Improper Validation of Array Index | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| davegamble cjson | >= 1.5.0, <= 1.7.18 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 7, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 8, 2025 | Initial Analysis | [email protected] |
| Sep 3, 2025 | CVE Modified | CISA-ADP |
| Sep 3, 2025 | New CVE Received | [email protected] |