提出 #1056742: vanna-ai Vanna 2.0.2 Deserialization情報

タイトルvanna-ai Vanna 2.0.2 Deserialization
説明Vanna's FAISSAgentMemory stores its agent memory metadata as a Python pickle file named metadata.pkl next to the FAISS index, and loads it with the standard library pickle.load() every time the object is constructed. There is no integrity check, no allowlisted unpickler, and no safer format option. Affected file: src/vanna/integrations/faiss/agent_memory.py. The sink is pickle.load(f) at line 67 inside _load_index(), which is called unconditionally from __init__ at line 56. The write counterpart is pickle.dump at line 84 in _save_index(). If the directory at the configured index_path or persist_path ever contains an attacker supplied metadata.pkl, for example restored from a backup, synced from shared or cloud storage, copied from another tenant, or written through a separate file write bug, then constructing FAISSAgentMemory executes arbitrary attacker chosen Python code in the host process. The load has no opt in flag and no lazy path, so the sink fires on construction. This is the same insecure deserialization class already fixed in sibling projects mem0 (CVE-2026-7597) and Langflow (CVE-2026-3357). mem0 fixed it with a restricted SafeUnpickler. Vanna's copy is still present and unfixed. The repository was archived on 2026-03-29 and is read only, so no upstream fix is expected. Latest affected release is 2.0.2 on PyPI (2026-02-02), affected range is less than or equal to 2.0.2. The older vanna.legacy.faiss module is not affected because it stores metadata as JSON. Proof of concept: a minimal local PoC builds a directory with a valid FAISS index and a metadata.pkl whose only payload is a __reduce__ that writes one marker file, then constructs FAISSAgentMemory(persist_path=that_dir). The marker did not exist before construction and existed immediately after, with no other code touching it, confirming code execution from pickle.load rather than any exception handler. The payload writes a harmless marker only and is not weaponized. Impact and scoring: this is not a standalone unauthenticated remote RCE. The precondition is attacker controlled content at a local path, so the attack vector is local. Given that precondition the impact is full code execution with no privileges and no user interaction. CVSS v3.1 vector AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, base score 7.8, High. Suggested fix: store the metadata as JSON, the way the older vanna.legacy.faiss module already does, or load it through a restricted pickle.Unpickler that allowlists only the plain data classes FAISSAgentMemory stores.
ソース⚠️ https://github.com/vanna-ai/vanna/blob/main/src/vanna/integrations/faiss/agent_memory.py#L67
ユーザー
 Anonymous User
送信2026年10月26日 09:12 (29 日 ago)
モデレーション2026年11月24日 14:32 (29 days later)
ステータス承諾済み
VulDBエントリ442894 [vanna-ai vanna 2.0.0/2.0.1/2.0.2 FAISS AgentMemory Integration agent_memory.py _load_index 特権昇格]
ポイント20

Might our Artificial Intelligence support you?

Check our Alexa App!