CVE-2025-57052 Memory corruption in n/a

Critical 9.8 Published Updated

Remote attackers can bypass array bounds checking and access restricted data via malformed JSON pointer strings in the cJSON library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-57052?

CVE-2025-57052 is a critical memory corruption vulnerability in n/a, published on 3 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-129, CWE-125

Which versions are affected by CVE-2025-57052?

It affects 1 product.

Products include Davegamble Cjson.

How do I fix CVE-2025-57052?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-57052 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57052 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as ALPINE-CVE-2025-57052, DEBIAN-CVE-2025-57052, DLA-4304-1, DSA-6001-1, GHSA-98j5-4649-rfv2, OESA-2025-2374 and 5 more.

Is CVE-2025-57052 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free