| Name | CVE-2025-57052 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4304-1, DSA-6001-1 |
| Debian Bugs | 1114757 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| cjson (PTS) | bullseye | 1.7.14-1+deb11u1 | vulnerable |
| bullseye (security) | 1.7.14-1+deb11u3 | fixed | |
| bookworm | 1.7.15-1+deb12u3 | vulnerable | |
| bookworm (security) | 1.7.15-1+deb12u4 | fixed | |
| trixie | 1.7.18-3.1 | vulnerable | |
| trixie (security) | 1.7.18-3.1+deb13u1 | fixed | |
| forky, sid | 1.7.18-4 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| cjson | source | bullseye | 1.7.14-1+deb11u3 | DLA-4304-1 | ||
| cjson | source | bookworm | 1.7.15-1+deb12u4 | DSA-6001-1 | ||
| cjson | source | trixie | 1.7.18-3.1+deb13u1 | DSA-6001-1 | ||
| cjson | source | (unstable) | (unfixed) | 1114757 |
https://x-0r.com/posts/cJSON-Array-Index-Parsing-Vulnerability
https://github.com/DaveGamble/cJSON/commit/74e1ff4994aa4139126967f6d289b675b4b36fef (v1.7.19)