Spring Data Neo4jでCypherインジェクションの脆弱性、データベースの内容が読み取られるおそれ
Summary
Spring Data Neo4jのカスタムクエリで、orderByの値がサニタイズされず、リモートから Cypherクエリを操作される脆弱性です。攻撃者はデータベースの内容を読み取り、APOCのファイル出力が有効な環境では、ファイルシステムへ結果を書き出されるおそれがあります。影響するのは6.1.0から8.0.8までと、8.1.0から8.1.2までで、8.0.9と8.1.3に修正版が公開されています。修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Spring Data Neo4jのカスタムクエリで、orderByの値がサニタイズされず、リモートから Cypherクエリを操作される脆弱性です。攻撃者はデータベースの内容を読み取り、APOCのファイル出力が有効な環境では、ファイルシステムへ結果を書き出されるおそれがあります。影響するのは6.1.0から8.0.8までと、8.1.0から8.1.2までで、8.0.9と8.1.3に修正版が公開されています。修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Neo4jSpring Data Neo4j |
≥ 6.1.0, < 8.0.9→ 8.0.9 ≥ 8.1.0, < 8.1.3→ 8.1.3 |
8.0.9 8.1.3 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory neo4j.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web repo.maven.apache.org
- web github.com