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.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.7%top 45.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20cjson1.7.19-r0ALPINE-CVE-2025-57052
Alpine:v3.21cjson1.7.19-r0ALPINE-CVE-2025-57052
Alpine:v3.22cjson1.7.19-r0ALPINE-CVE-2025-57052
Alpine:v3.23cjson1.7.19-r0ALPINE-CVE-2025-57052
Alpine:v3.24cjson1.7.19-r0ALPINE-CVE-2025-57052
Debian:12cjson1.7.15-1+deb12u4DSA-6001-1
Debian:12cjson1.7.15-1+deb12u4DEBIAN-CVE-2025-57052
Debian:13cjson1.7.18-3.1+deb13u1DEBIAN-CVE-2025-57052
Debian:13cjson1.7.18-3.1+deb13u1DSA-6001-1
Debian:14cjson1.7.19-1DEBIAN-CVE-2025-57052
Ubuntu:22.04:LTScjson1.7.15-1ubuntu0.1USN-7973-1
Ubuntu:22.04:LTScjson1.7.15-1ubuntu0.1UBUNTU-CVE-2025-57052
Ubuntu:25.10cjson1.7.18-3.1ubuntu0.1UBUNTU-CVE-2025-57052
Ubuntu:25.10cjson1.7.18-3.1ubuntu0.1USN-7973-1

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

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

References