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 restricted data via malformed JSON pointer strings containing alphanumeric characters.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | cjson | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | cjson | Fixed | 1.7.18-3.1ubuntu0.1 | UBUNTU-CVE-2025-57052 |
| Ubuntu 24.04 | cjson | Fix pending | 1.7.17-1ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2025-57052 |
| Ubuntu 22.04 | cjson | Fixed | 1.7.15-1ubuntu0.1 | UBUNTU-CVE-2025-57052 |
| Ubuntu 20.04 | cjson | Fix pending | 1.7.10-1.1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-57052 |
| Debian 14 | cjson | Fixed | 1.7.19-1 | DEBIAN-CVE-2025-57052 |
| Debian 13 | cjson | Fixed | 1.7.18-3.1+deb13u1 | DEBIAN-CVE-2025-57052 |
| Debian 12 | cjson | Fixed | 1.7.15-1+deb12u4 | DEBIAN-CVE-2025-57052 |
| Alpine Linux 3.24 | cjson | Fixed | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine Linux 3.23 | cjson | Fixed | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine Linux 3.22 | cjson | Fixed | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine Linux 3.21 | cjson | Fixed | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine Linux 3.20 | cjson | Fixed | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
| Alpine Linux 3.19 | cjson | Fixed | 1.7.19-r0 | ALPINE-CVE-2025-57052 |
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.