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 cJSON_Utils.c, allowing remote attackers to bypass array bounds checking and access restricte...
CriticalCVSS 9.8
EPSS 0.77%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
13 packages: 12 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux ceph(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| alpine/cjson(Alpine v3.19) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 | Fixed |
| alpine/cjson(Alpine v3.20) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 | Fixed |
| alpine/cjson(Alpine v3.21) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 | Fixed |
| alpine/cjson(Alpine v3.22) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 | Fixed |
| alpine/cjson(Alpine v3.23) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 | Fixed |
| alpine/cjson(Alpine v3.24) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 | Fixed |
| DaveGamble cJSON | >= 1.5.0, <= 1.7.18 | after 1.7.18 | Fixed |
| debian/cjson(Debian 12) | < 1.7.15-1+deb12u4; = 1.7.15-1; = 1.7.15-1+deb12u1; = 1.7.15-1+deb12u2 +1 more | 1.7.15-1+deb12u4 | Fixed |
| debian/cjson(Debian 13) | < 1.7.18-3.1+deb13u1; = 1.7.18-3.1 | 1.7.18-3.1+deb13u1 | Fixed |
| debian/cjson(Debian 14) | < 1.7.19-1; = 1.7.18-3.1; = 1.7.18-4 | 1.7.19-1 | Fixed |
| ubuntu/cjson(Ubuntu 22.04) | < 1.7.15-1ubuntu0.1 | 1.7.15-1ubuntu0.1 | Fixed |
| ubuntu/cjson(Ubuntu 24.04) | < 1.7.17-1ubuntu0.1~esm3 | 1.7.17-1ubuntu0.1~esm3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux ceph(Azure Linux:3.0) | All versions | No fix listed |
| debian/cjson(Debian:12) | < 1.7.15-1+deb12u4 | 1.7.15-1+deb12u4 |
| debian/cjson(Debian:12) | = 1.7.15-1 | No fix listed |
| debian/cjson(Debian:12) | = 1.7.15-1+deb12u1 | No fix listed |
| debian/cjson(Debian:12) | = 1.7.15-1+deb12u2 | No fix listed |
| debian/cjson(Debian:12) | = 1.7.15-1+deb12u3 | No fix listed |
| debian/cjson(Debian:13) | < 1.7.18-3.1+deb13u1 | 1.7.18-3.1+deb13u1 |
| debian/cjson(Debian:13) | = 1.7.18-3.1 | No fix listed |
| debian/cjson(Debian:14) | < 1.7.19-1 | 1.7.19-1 |
| debian/cjson(Debian:14) | = 1.7.18-3.1 | No fix listed |
| debian/cjson(Debian:14) | = 1.7.18-4 | No fix listed |
| ubuntu/cjson(Ubuntu:22.04) | < 1.7.15-1ubuntu0.1 | 1.7.15-1ubuntu0.1 |
| alpine/cjson(Alpine:v3.19) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 |
| alpine/cjson(Alpine:v3.20) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 |
| alpine/cjson(Alpine:v3.21) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 |
| alpine/cjson(Alpine:v3.22) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 |
| alpine/cjson(Alpine:v3.23) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 |
| alpine/cjson(Alpine:v3.24) | >= 1.5.0, < 1.7.19-r0 | 1.7.19-r0 |
| ubuntu/cjson(Ubuntu:24.04) | < 1.7.17-1ubuntu0.1~esm3 | 1.7.17-1ubuntu0.1~esm3 |
| DaveGamble cJSON | >= 1.5.0, <= 1.7.18 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Debian Security Tracker CVE-2025-57052 vendor-advisory
- x-0r.com exploit
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7973-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking