Cypher injection via orderBy placeholder in Spring Data Neo4j custom queries
Summary
| CVE | CVE-2026-125080 |
|---|---|
| State | PUBLISHED |
| Assigner | Neo4j |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-20 09:19:56 UTC |
| Updated | 2026-11-20 19:18:38 UTC |
| Description | Improper neutralization of special elements in data query logic (Cypher injection) in the orderBy placeholder handling for custom queries in Neo4j Spring Data Neo4j versions 6.1.0 through 8.0.8 and 8.1.0 through 8.1.2 allows a remote attacker to read database contents via blind reads, write read content into new nodes, or, if APOC and APOC file export are enabled, to write query results to a file in the database's accessible file system via crafted sort order parameters. Exploitation requires an application that passes unvalidated user input as the orderBy value to a custom Cypher query using the placeholder directive. |
Risk And Classification
Primary CVSS: v4.0 8.2 HIGH from 3b236295-4ccd-4a1f-a1c1-a72eecc8d7b6
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS: 0.008860000 probability, percentile 0.601740000 (date 2026-11-22)
Problem Types: CWE-943 | CWE-943 CWE-943 Improper Neutralization of Special Elements in Data Query Logic
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | 3b236295-4ccd-4a1f-a1c1-a72eecc8d7b6 | Secondary | 8.2 | HIGH | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/C... |
| 4.0 | CNA | CVSS | 8.2 | HIGH | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
CVSS v4.0 Breakdown
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Neo4j | Spring Data Neo4j | affected 6.1.0 8.0.9 maven | Not specified |
| CNA | Neo4j | Spring Data Neo4j | affected 8.1.0 8.1.3 maven | Not specified |
| CNA | Neo4j | Spring Data Neo4j | unaffected 8.2.0 * maven | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| neo4j.com/security/CVE-2026-125080 | 3b236295-4ccd-4a1f-a1c1-a72eecc8d7b6 | neo4j.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Hayk Andriasyan (en)
CNA: Tim Zheng (tim.zheng) (en)
Additional Advisory Data
Solutions
CNA: Upgrade Spring Data Neo4j to 8.0.9, 8.1.3, 8.2.0 or later (depending on your release line). The fix restricts functions callable in the orderBy directive to an allow list of built-in (non-APOC) functions; the list must be extended intentionally if other functions are needed.
Workarounds
CNA: Validate any user-supplied orderBy value against an allow list of known property names and sort directions before passing it to Spring Data Neo4j. Do not expose the orderBy input to untrusted users without validation.