CVE-2026-125080

Cypher injection via orderBy placeholder in Spring Data Neo4j custom queries

Published Nov 20, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability occurs when a custom Cypher query uses the orderBy placeholder and receives unfiltered user input; the input is treated as Cypher code, enabling an attacker to create blind read queries, insert arbitrary nodes, or, if the APOC library and its file export capability are enabled, write query results to a file on the database host, thereby compromising data confidentiality, integrity, and potentially availability.

Affected Systems

Neo4j Spring Data Neo4j versions 6.1.0 through 8.0.8 and 8.1.0 through 8.1.2 are vulnerable. These versions include the orderBy placeholder handling for custom queries exposed to user input.

Risk and Exploitability

With a CVSS score of 8.2 the flaw is considered high severity, while an EPSS score of less than 1% indicates a low probability of exploitation at the time of assessment. The vulnerability is not listed in the CISA KEV catalog. An attacker can exploit this remotely by supplying a crafted orderBy value to a custom query that is exposed to untrusted users; the attack requires only standard database access rights and does not need elevated privileges.

Remediation

Vendor Solution

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.


Vendor Workaround

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.


OpenCVE Recommended Actions

  • Upgrade to Spring Data Neo4j 8.0.9, 8.1.3, 8.2.0 or a later release in your chosen line.
  • Validate any user‑supplied orderBy value against an allow list of known property names and sort directions before passing it to Spring Data Neo4j.
  • Disabling APOC file export or ensuring it is not enabled can prevent file write exploitation if that functionality is not required.

Generated by OpenCVE AI on November 21, 2026 at 02:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
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.
Title Cypher injection via orderBy placeholder in Spring Data Neo4j custom queries
First Time appeared Neo4j
Neo4j spring Data Neo4j
Weaknesses CWE-943
CPEs cpe:2.3:a:neo4j:spring_data_neo4j:*:*:*:*:*:*:*:*
Vendors & Products Neo4j
Neo4j spring Data Neo4j
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
Neo4j
Published
Updated
Nov 20, 2026, 6:06 PM
Reserved
Nov 9, 2026, 5:00 PM
Status
Received
Published
Nov 20, 2026, 9:19 AM
Modified
Nov 20, 2026, 7:18 PM