CVE-2025-57052

cJSON: out-of-bounds access in decode_array_index_from_pointer() in cJSON_Utils.c via crafted JSON pointer strings

Published Sep 3, 2025 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4304-1 cjson security update
Debian DSA Debian DSA DSA-6001-1 cjson security update
EUVD EUVD EUVD-2025-26527 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.
Ubuntu USN Ubuntu USN USN-7973-1 cJSON vulnerabilities
History
Type Values Removed Values Added
First Time appeared Davegamble
Davegamble cjson
CPEs cpe:2.3:a:davegamble:cjson:*:*:*:*:*:*:*:*
Vendors & Products Davegamble
Davegamble cjson
Type Values Removed Values Added
Title cJSON: out-of-bounds access in decode_array_index_from_pointer() in cJSON_Utils.c via crafted JSON pointer strings
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
First Time appeared Cjson Project
Cjson Project cjson
Vendors & Products Cjson Project
Cjson Project cjson
Type Values Removed Values Added
Weaknesses CWE-125
CWE-129
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 3, 2025, 6:13 PM
Reserved
Aug 17, 2025, 12:00 AM
Status
Modified
Published
Sep 3, 2025, 3:15 PM
Modified
Nov 7, 2026, 6:10 PM
Severity
Important
Public date
Sep 3, 2025, 12:00 AM