Spring Data Neo4jでCypherインジェクションの脆弱性、データベースの内容が読み取られるおそれ
概要
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要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Spring Data Neo4jのカスタムクエリで、orderByの値がサニタイズされず、リモートから Cypherクエリを操作される脆弱性です。攻撃者はデータベースの内容を読み取り、APOCのファイル出力が有効な環境では、ファイルシステムへ結果を書き出されるおそれがあります。影響するのは6.1.0から8.0.8までと、8.1.0から8.1.2までで、8.0.9と8.1.3に修正版が公開されています。修正版へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| 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 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory neo4j.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web repo.maven.apache.org
- web github.com