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…

Critical · published September 3, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
54.2
In the wild
Unconfirmed
What it is

🚨 An out-of-bounds access vulnerability lurking in cJSON could let attackers bypass array checks entirely! 🔥 Think of it as a restaurant where a waiter allows customers to bypass the menu and access restricted kitchen areas just because they know the right words to say. In this case, malformed JSON pointer strings are the magic words that open doors they shouldn't. If exploited, an attacker could read or manipulate sensitive data from the server, potentially leading to data leaks or unauthorized access. The implications are absolutely devastating, as they can compromise the integrity of your application and the safety of your users' information.

Put simply

Think of it as a restaurant where a waiter allows customers to bypass the menu and access restricted kitchen areas just because they know the right words to say. In this case, malformed JSON pointer strings are the magic words that open doors they shouldn't. This vulnerability in cJSON versions 1.5.0 to 1.7.18 allows remote attackers to exploit the decode_array_index_from_pointer function, which fails to properly validate bounds, enabling unauthorized data access through crafted JSON pointers.

What to do

If exploited, an attacker could read or manipulate sensitive data from the server, potentially leading to data leaks or unauthorized access. The implications are absolutely devastating, as they can compromise the integrity of your application and the safety of your users' information. Immediate action is necessary! Upgrade to the patched version 1.7.19 or later to close this security gap. Additionally, review your codebase for improper handling of JSON pointers to reinforce security best practices. You can tackle this! Implement the fix and enhance your defenses today. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00743 · 54.2th percentile
Published
2025-09-03T00:00Z
EPSS history
Timeline
  • 03 SEP 00:00Z
    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…
    cvelistv5