Vulnerability · Published Sep 3, 2025 · Assigned by mitre
CVE-2025-57052
Critical 9.8
In plain English
A critical-severity out-of-bounds read in the cjson package (Alpine). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | cjson | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine:v3.21 | cjson | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine:v3.22 | cjson | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine:v3.23 | cjson | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine:v3.24 | cjson | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Debian:12 | cjson | 1.7.15-1+deb12u4 | DSA-6001-1 |
| Debian:12 | cjson | 1.7.15-1+deb12u4 | DEBIAN-CVE-2025-57052 |
| Debian:13 | cjson | 1.7.18-3.1+deb13u1 | DEBIAN-CVE-2025-57052 |
| Debian:13 | cjson | 1.7.18-3.1+deb13u1 | DSA-6001-1 |
| Debian:14 | cjson | 1.7.19-1 | DEBIAN-CVE-2025-57052 |
| Ubuntu:22.04:LTS | cjson | 1.7.15-1ubuntu0.1 | USN-7973-1 |
| Ubuntu:22.04:LTS | cjson | 1.7.15-1ubuntu0.1 | UBUNTU-CVE-2025-57052 |
| Ubuntu:25.10 | cjson | 1.7.18-3.1ubuntu0.1 | UBUNTU-CVE-2025-57052 |
| Ubuntu:25.10 | cjson | 1.7.18-3.1ubuntu0.1 | USN-7973-1 |
Affected products (as reported)
Weakness: CWE-129, CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H