Flexible GraphRAGでグラフDBを改ざん・削除される恐れ
Summary
Flexible GraphRAGのFalkorDBアダプターにおけるエスケープ処理の不備により、取り込んだ文書の内容を通じてCypherクエリを改変され、グラフデータが改ざん・削除されたり、情報が漏えいしたりするおそれがあります。影響を受けるのは0.6.0から0.8.2までのバージョンで、0.8.2で修正されています。0.8.2以降へ更新してください。
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.
Flexible GraphRAGのFalkorDBアダプターにおけるエスケープ処理の不備により、取り込んだ文書の内容を通じてCypherクエリを改変され、グラフデータが改ざん・削除されたり、情報が漏えいしたりするおそれがあります。影響を受けるのは0.6.0から0.8.2までのバージョンで、0.8.2で修正されています。0.8.2以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| stevereinerflexible-graphrag | — | Not listed |
| pipflexible-graphrag |
< 0.8.2→ 0.8.2 |
0.8.2 |
| PyPIflexible-graphrag |
≥ 0.6.0, < 0.8.2→ 0.8.2 |
0.8.2 |
Original description The description as published by the source.
Flexible GraphRAG is a Python framework for building graph and retrieval-augmented generation applications across multiple graph, vector, and search backends. From 0.6.0 until 0.8.2, the _escape() helper in flexible-graphrag/langchain/graph/pg_store_adapters/falkordb_adapter.py escapes quotes before backslashes and then interpolates the result into Cypher assembled by FalkorDBAdapter.add_graph_documents, allowing an inserted escape to be doubled and a quote to terminate the string early. When GRAPH_BACKEND=langchain and GRAPH_DB=falkordb are configured, attacker-influenced ingested document content can cause the extraction model to produce malicious entity or relationship values that reach these queries, allowing injected Cypher clauses to modify or delete graph data and, when the calling code surfaces query results to the user or LLM, disclose graph data. Dynamic node and relationship type identifiers are also inserted into backtick-quoted query positions without safe parameterization. The LlamaIndex FalkorDB store is not affected. This issue is fixed in version 0.8.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com