{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0098-litellm-semantic-cache-cross-user-poisoning",
  "title": "LiteLLM CVE-2026-89032: Broken Semantic-Cache Isolation Enables Cross-User Leaks and Tool-Call Poisoning",
  "subtitle": "When /v1/responses bypassed per-API-key cache partitioning, one caller’s semantic cache entries could leak PII, serve poisoned answers, redirect MCP bank transfers, or trigger bash RCE in a coding agent.",
  "summary": "LiteLLM is a gateway that routes applications' requests to language models. Its semantic cache can reuse an earlier answer when two questions have similar meanings. NVISO showed that in the tested configuration, /v1/responses reused cached entries across different API keys. This exposed simulated support data and allowed a fabricated answer or tool-call response to reach a different user. The researchers also demonstrated downstream execution in a mock banking tool and the pi coding agent. CVE-2026-89032 was fixed in v1.101.0-rc.1.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "ai-infrastructure",
    "tool-integrations-mcp",
    "autonomous-agents"
  ],
  "risk_impact": [
    "data-exfiltration",
    "model-poisoning-integrity",
    "financial-fraud-abuse",
    "system-compromise-rce"
  ],
  "affected_components": [
    "LiteLLM proxy /v1/responses (openai-responses) endpoint",
    "Redis semantic cache (redis-semantic) and cosine similarity matcher",
    "Shared MCP server (mock-bank send_transaction with require_approval: \"never\")",
    "pi coding agent (v0.45.3) consuming /v1/responses bash tool calls"
  ],
  "source_research": {
    "provider": "NVISO Labs",
    "primary_url": "https://blog.nviso.eu/2026/11/12/breaking-the-semantic-cache-a-litellm-case-study-cve-2026-89032/",
    "published": "2026-11-12",
    "note": "The four outcomes were controlled demonstrations on LiteLLM v1.99.0 using Redis semantic caching and a deliberately low 0.2 similarity threshold. A stricter threshold changes the match rate but does not establish identity isolation. The tests did not involve real customer records or funds."
  },
  "attack_steps": [
    {
      "id": "shared-bucket-bug",
      "title": "Use a LiteLLM route with a shared semantic-cache partition",
      "zhTitle": "使用未依 API 金鑰隔離的 LiteLLM /v1/responses 語意快取",
      "summary": "The tested Redis semantic cache for /v1/responses did not partition by API key. Queries from different identities could reuse the same response.",
      "zhSummary": "測試中的 /v1/responses 使用 Redis 語意快取，但沒有依 API 金鑰分區。不同身分的請求因此可能拿到同一份回應。",
      "tactic": "AML.TA0000",
      "technique": "AML.T0040",
      "layout": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "pii-cache-leak",
      "title": "Retrieve a test support response across different API keys",
      "zhTitle": "跨 API 金鑰讀到另一使用者的測試客服資料",
      "summary": "A matching request from another key returned a cached support response containing simulated contact and account details.",
      "zhSummary": "另一個 API 金鑰的類似請求拿到快取的客服回應，裡面包含模擬的聯絡資訊與帳號資料。",
      "tactic": "AML.TA0009",
      "technique": "AML.T0085.002",
      "layout": {
        "x": 690,
        "y": -780
      }
    },
    {
      "id": "hallucination-poison",
      "title": "Reuse a fabricated product offer",
      "zhTitle": "把虛假的產品促銷回應傳給別人",
      "summary": "The earlier fabricated offer was cached and returned again for a later, semantically matching product query.",
      "zhSummary": "較早產生的假促銷內容被存入快取。後續有人問到語意相近的產品問題時，快取把同一份內容傳給他。",
      "tactic": "AML.TA0011",
      "technique": "AML.T0130",
      "layout": {
        "x": 690,
        "y": -260
      }
    },
    {
      "id": "mcp-tx-poison",
      "title": "Execute the cached transfer in a mock bank",
      "zhTitle": "模擬銀行執行快取中的轉帳操作",
      "summary": "The demonstration returned a cached US$1,000 transfer when the second user requested US$50. LiteLLM could run the mock-bank MCP tool without human approval.",
      "zhSummary": "第二位使用者原本要求轉帳 50 美元，系統卻取回另一筆 1,000 美元的快取呼叫。模擬銀行的 MCP 工具在該設定中不需要人工核准。",
      "tactic": "AML.TA0005",
      "technique": "AML.T0053",
      "layout": {
        "x": 690,
        "y": 260
      }
    },
    {
      "id": "coding-agent-rce",
      "title": "Run a cached shell tool call in pi",
      "zhTitle": "pi 執行快取回傳的 shell 工具呼叫",
      "summary": "In the controlled test, pi v0.45.3 consumed a cached tool-call response from /v1/responses and ran the shell action on the test workstation.",
      "zhSummary": "在受控測試中，pi v0.45.3 收到 /v1/responses 回傳的工具呼叫快取，並在測試工作站執行了 shell 動作。",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "layout": {
        "x": 690,
        "y": 780
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0040",
      "name": "AI Model Inference API Access"
    },
    {
      "id": "AML.T0085.002",
      "name": "Conversation Context and Memory"
    },
    {
      "id": "AML.T0130",
      "name": "AI Agent Response Biasing"
    },
    {
      "id": "AML.T0053",
      "name": "AI Agent Tool Invocation"
    },
    {
      "id": "AML.T0050",
      "name": "Command and Scripting Interpreter"
    }
  ],
  "reader_narrative": {
    "pathCount": 4,
    "topologyNote": "Four independent demonstrations share the same cache-isolation failure. The two execution paths also require a downstream runner willing to execute the cached action.",
    "groups": [
      {
        "id": "cache",
        "kind": "shared",
        "eyebrow": "Shared prerequisite",
        "label": "Semantic cache does not separate the API keys",
        "summary": "The Redis semantic cache in the tested LiteLLM Responses path can return another identity's prior response.",
        "stepIds": [
          "shared-bucket-bug"
        ]
      },
      {
        "id": "pii",
        "kind": "path",
        "eyebrow": "Demonstration 1",
        "label": "Read another test user's support data",
        "summary": "A separate key received personal data from an earlier simulated support response.",
        "stepIds": [
          "pii-cache-leak"
        ]
      },
      {
        "id": "false",
        "kind": "path",
        "eyebrow": "Demonstration 2",
        "label": "Return a fabricated offer",
        "summary": "Another product query received the earlier fabricated price and discount response.",
        "stepIds": [
          "hallucination-poison"
        ]
      },
      {
        "id": "bank",
        "kind": "path",
        "eyebrow": "Demonstration 3",
        "label": "Execute the wrong mock transfer",
        "summary": "The mock MCP bank ran a cached US$1,000 transfer after another test user requested US$50.",
        "stepIds": [
          "mcp-tx-poison"
        ]
      },
      {
        "id": "pi",
        "kind": "path",
        "eyebrow": "Demonstration 4",
        "label": "Execute a cached tool call on the test client",
        "summary": "The pi coding agent used the cached response as a local shell tool call.",
        "stepIds": [
          "coding-agent-rce"
        ]
      }
    ]
  }
}
