CVE-2025-57052
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedcJSON 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe cJSON library versions 1.5.0 through 1.7.18 contain an out-of-bounds access vulnerability in the decode_array_index_from_pointer function in cJSON_Utils.c. Attackers can bypass array bounds checking by providing malformed JSON pointer strings containing alphanumeric characters, allowing access to restricted memory.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 1.5.0, <= 1.7.18CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify if cJSON library is presentSearch your codebase, dependencies, or installed packages for files named cJSON.c, cJSON.h, or cJSON_Utils.c. On Linux systems, run: find / -name "cJSON*" 2>/dev/nullAffected if cJSON source files or library binaries are found in the environment
-
Determine the installed cJSON versionCheck the version in the cJSON header file (cJSON.h) or the version tag in the source repository. Look for a version constant like cJSON_VERSION or check git tags if the source is availableAffected if The version number is >= 1.5.0 and <= 1.7.18
-
Verify cJSON_Utils.c is compiled or linkedInspect your build artifacts, object files, or linked libraries for the decode_array_index_from_pointer function. Search compiled binaries using: nm your_binary | grep decode_array_index_from_pointerAffected if The cJSON_Utils.c file is compiled into the application or the decode_array_index_from_pointer symbol is present in linked binaries
-
Check if JSON pointer parsing is in useSearch source code for calls to cJSONUtils_ValidateJsonPointer, cJSONUtils_GetPointer, cJSONUtils_GetPointerCaseSensitive, or similar JSON pointer functions from cJSON_Utils.hAffected if Code calls JSON pointer functions from cJSON_Utils to process user-supplied JSON pointer strings
-
Inspect input validation on JSON pointer stringsReview code that passes JSON pointer strings to cJSON pointer functions. Check if validation exists to reject pointers with unexpected alphanumeric characters outside standard numeric array indicesAffected if No input validation is performed on JSON pointer strings before passing them to cJSON pointer functions, allowing malformed pointers to reach the vulnerable function
Your environment is affected if cJSON version 1.5.0 through 1.7.18 is in use and your application processes JSON pointer strings through cJSON_Utils functions without strict input validation.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade cJSON to a version beyond 1.7.18 where the vulnerability is patched, or implement strict input validation on JSON pointer strings before processing to reject malformed pointers.
cJSON 1.7.19 or latest stable release
- Identify all projects and dependencies that include the cJSON library versions 1.5.0 through 1.7.18
- Locate the cJSON source code or package in your project dependencies (check package.json, conanfile.txt, CMakeLists.txt, or vendored copies)
- Upgrade cJSON to version 1.7.19 or later (latest stable release recommended)
- If using a package manager, update the dependency (e.g., conan install cJSON/1.7.19, or npm/pip depending on your package wrapper)
- If vendoring cJSON, replace the cJSON source files with the updated version from the official repository (https://github.com/DaveGamble/cJSON)
- Rebuild and test your application to ensure the library functions correctly after the upgrade
- Verify the fix resolves the vulnerability by testing with malformed JSON pointer strings containing alphanumeric characters
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing8.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,472.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-57052 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-57052 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data