cve.bz

CVE-2025-57052 davegamble cjson: Out-of-bounds Read

9.8 criticalExploit referenceEPSS 0.8%

Critical (9.8) in davegamble cjson. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-09-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-129 Improper Validation of Array Index
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-57052 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-57052?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-57052?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-57052 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
davegamble:cjsonfrom 1.5.0 through 1.7.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11cjson1.7.14-1+deb11u3DLA-4304-1
Debian12cjson1.7.15-1+deb12u4DEBIAN-CVE-2025-57052 DSA-6001-1
Debian13cjson1.7.18-3.1+deb13u1DEBIAN-CVE-2025-57052 DSA-6001-1
Debian14cjson1.7.19-1DEBIAN-CVE-2025-57052
Ubuntu22.04:LTScjson1.7.15-1ubuntu0.1UBUNTU-CVE-2025-57052 USN-7973-1
Ubuntu25.10cjson1.7.18-3.1ubuntu0.1UBUNTU-CVE-2025-57052 USN-7973-1
UbuntuPro:20.04:LTScjson1.7.10-1.1ubuntu0.1~esm1UBUNTU-CVE-2025-57052 USN-7973-1
UbuntuPro:24.04:LTScjson1.7.17-1ubuntu0.1~esm3UBUNTU-CVE-2025-57052 USN-7973-1
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8cjson, cjson-debuginfo, cjson-debugsource0:1.7.18-2.el8satRHSA-2025:17614
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8puppet-agent0:7.34.0-4.el8satRHSA-2025:17614
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-django, python3.11-django0:4.2.24-0.1.el8pcRHSA-2025:17614
Red Hatsatellite:6.16::el8, satellite_capsule:6.16::el8cjson, cjson-debuginfo, cjson-debugsource0:1.7.18-2.el8satRHSA-2025:17613
Red Hatsatellite:6.16::el8, satellite_capsule:6.16::el8puppet-agent0:8.8.1-3.el8satRHSA-2025:17613
Red Hatsatellite:6.16::el8, satellite_capsule:6.16::el8python-django, python3.11-django0:4.2.24-0.1.el8pcRHSA-2025:17613
Red Hatsatellite:6.16::el9, satellite_capsule:6.16::el9cjson, cjson-debuginfo, cjson-debugsource0:1.7.18-2.el9satRHSA-2025:17613
Red Hatsatellite:6.16::el9, satellite_capsule:6.16::el9puppet-agent0:8.8.1-3.el9satRHSA-2025:17613
Red Hatsatellite:6.16::el9, satellite_capsule:6.16::el9python-django, python3.11-django0:4.2.24-0.1.el9pcRHSA-2025:17613
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9cjson, cjson-debuginfo, cjson-debugsource0:1.7.18-2.el9satRHSA-2025:17606
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9puppet-agent0:8.8.1-3.el9satRHSA-2025:17606
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9python-django, python3.11-django0:4.2.24-0.1.el9pcRHSA-2025:17606
SUSELinux Enterprise Workstation Extension 15 SP7cJSON1.7.19-150700.3.3.1SUSE-SU-2025:03520-1
openSUSELeap 16.0cJSON1.7.19-160000.1.1openSUSE-SU-2026:20340-1
openSUSETumbleweedcJSON1.7.19-1.1openSUSE-SU-2025:15583-1
Alpinev3.19, v3.20, v3.21 and 3 morecjson1.7.19-r0ALPINE-CVE-2025-57052

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Only applications using the cJSON JSON Pointer API, where specially crafted JSON pointer strings can be supplied by untrusted users are vulnerable to this issue, limiting the exposure and the impact of this vulnerability.

Red Hat's mitigation

Applications can validate the JSON pointer strings, ensuring they contain only numeric indexes, before calling the cJSON JSON Pointer API functions.

ProductPackageStateAdvisory
Red Hat Satellite 6.15 for RHEL 8cjson-0:1.7.18-2.el8satFixed 2025-10-08RHSA-2025:17614
Red Hat Satellite 6.16 for RHEL 8cjson-0:1.7.18-2.el8satFixed 2025-10-08RHSA-2025:17613
Red Hat Satellite 6.16 for RHEL 9cjson-0:1.7.18-2.el9satFixed 2025-10-08RHSA-2025:17613
Red Hat Satellite 6.17 for RHEL 9cjson-0:1.7.18-2.el9satFixed 2025-10-08RHSA-2025:17606

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-57052.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON