NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-44552: Open WebUI: Redis Cache Keys tool_servers and terminal_servers Missing Instance Prefix Enable Cross-Instance Cache Poisoning

highCVSS 3.1 8.7GHSA-3x8w-4f7p-xxc2

Open WebUI 0.8.12 and earlier stores its tool_servers and terminal_servers Redis cache entries under bare key names, without REDIS_KEY_PREFIX. When several instances share one Redis, an admin on one instance can swap the tool server list that another instance's users get. Fixed in open-webui 0.9.0.

Published May 8, 2026 · Updated May 15, 2026 · Analysis Nov 3, 2026

What an attacker can do

Open WebUI namespaces its Redis keys with REDIS_KEY_PREFIX (default open-webui) so several instances can share one backend. Four calls in backend/open_webui/utils/tools.py skip it: the SET and GET for tool_servers at lines 841 and 850, and for terminal_servers at lines 976 and 986. Other keys, such as auth:token:{jti}:revoked, ratelimit and tasks:commands, are prefixed.

In a shared-Redis setup (multi-region, blue-green or hot standby), an admin of instance A who adds a tool server pointing at their own OpenAPI URL writes that list to the bare key. Instance B reads the same key and serves A's list to its users. When B's users run tools, the attacker's server receives the tool call payloads, which hold chat content, user identity and, where an external account is linked, scoped OAuth tokens. It also returns tool output that goes into B's model context as trusted data, which opens a path to prompt injection. B shows no error, so it cannot tell the entry came from another instance.

The attacker needs admin on one instance (PR:H), which can be a legitimate admin or an escalated account, and a deployment that shares Redis. Single-instance setups are not exposed. The data panel marks scope as changed since B is a different security domain.

Who is affected

Affected: the open-webui pip package at 0.8.12 and earlier, only where two or more instances share one Redis database. The advisory says it likely applies to all versions since the tool server cache was added. Check your version and your Redis setup:

pip show open-webui

Then check whether REDIS_URL on several deployments points to the same Redis database.

open-webui

Ecosystem
PyPI
Affected
<= 0.8.12
Fixed in
0.9.0
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.9.0. The advisory shows the problem as keys without the instance prefix; the fix is to apply REDIS_KEY_PREFIX to the tool_servers and terminal_servers keys. The advisory gives no workaround. Until you upgrade, give each instance its own Redis database or its own Redis, or at least a distinct REDIS_KEY_PREFIX, and review the admin accounts on every instance that shares a backend. Check the configured tool servers on each instance after the change.

How to tell if you were hit

In Redis, look for the bare keys tool_servers and terminal_servers; their presence shows affected code is in use. On each instance, open the admin tool server settings and compare what users see against what that instance's admins configured. Unknown URLs, or an OpenAPI URL not set by your admins, point to the issue. Review outbound requests from Open WebUI to unfamiliar tool hosts. The advisory notes the instance logs no error.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Redis Cache Keys tool_servers and terminal_servers Missing Instance Prefix Enable Cross-Instance Cache Poisoning

Affected Component

Tool server and terminal server Redis cache:

  • backend/open_webui/utils/tools.py (line 841, tool_servers SET)
  • backend/open_webui/utils/tools.py (line 850, tool_servers GET)
  • backend/open_webui/utils/tools.py (line 976, terminal_servers SET)
  • backend/open_webui/utils/tools.py (line 986, terminal_servers GET)

Affected Versions

Current main branch (commit 6fdd19bf1) and likely all versions since the tool server / terminal server Redis cache was introduced.

Description

Open WebUI uses a REDIS_KEY_PREFIX (default open-webui) to namespace Redis keys, allowing multiple instances to safely share a single Redis backend. Every Redis key in the codebase uses this prefix — except the tool_servers and terminal_servers keys in utils/tools.py, which use bare key names.

When two or more Open WebUI instances share a Redis database (a supported and documented deployment pattern, e.g., for multi-region deployments, blue-green setups, or cluster topologies), the unprefixed keys collide. An admin on Instance A writing to tool_servers overwrites the value read by Instance B — causing Instance B's users to receive Instance A's tool server configuration.

# utils/tools.py — unprefixed keys (problem)
await request.app.state.redis.set('tool_servers', ...)        # line 841
json.loads(await request.app.state.redis.get('tool_servers')) # line 850
await request.app.state.redis.set('terminal_servers', ...)    # line 976
json.loads(await request.app.state.redis.get('terminal_servers'))  # line 986

# Every other Redis key in the codebase — prefixed (correct pattern)
f'{REDIS_KEY_PREFIX}:auth:token:{jti}:revoked'
f'{REDIS_KEY_PREFIX}:ratelimit:{email}:{bucket}'
f'{REDIS_KEY_PREFIX}:tasks:commands'

Attack Scenario

Two Open WebUI instances (A and B) share a Redis backend — a supported deployment for multi-region setups, blue-green deployments, or hot-standby. Both instances have their own admin accounts; the shared Redis was chosen for coordinated session handling, rate limiting, and task management.

  1. Attacker is an admin on Instance A (a legitimately provisioned admin, or one that escalated via any available path including the LDAP empty-password or stale-admin-role findings).
  2. Attacker on Instance A configures a tool server pointing to https://attacker-controlled.example.com/openapi.json. This triggers utils/tools.py:841 to write the new tool server list under the bare key tool_servers.
  3. Instance B's users query tools. Instance B reads from tool_servers (line 850) — gets Instance A's poisoned list, which now includes the attacker's server alongside or instead of Instance B's legitimate tool servers.
  4. Instance B's users invoke tools through the model's context. The attacker's server receives tool call payloads containing: chat content, user identity, OAuth tokens scoped to the tool server (if the user has bound their external account), and in-flight conversation context.
  5. The attacker's server returns arbitrary tool responses, which are fed back into Instance B's LLM context as "trusted tool output" — enabling prompt injection, misinformation delivery, and further data exfiltration cascades.

The same cross-instance poisoning applies to terminal_servers.

Impact

  • Cross-instance cache poisoning: an admin on one instance affects all users of another instance sharing the Redis backend
  • Data exfiltration: tool call payloads contain chat content and user identity, delivered to the attacker's server
  • Prompt injection delivery: attacker-returned tool responses enter the victim instance's LLM context as trusted data
  • Undermines the multi-instance isolation guarantee that REDIS_KEY_PREFIX was introduced to provide
  • Silent failure mode: no error is raised; the victim instance sees a valid, signed cache entry and has no way to detect it came from a different instance

Preconditions

  • Multiple Open WebUI instances share a single Redis backend (a supported and documented deployment)
  • Attacker has admin access on one of the instances (or escalates to admin via any available path)

Credited to Classic298.

Questions

Am I affected with a single Open WebUI instance?

No. The flaw needs two or more instances sharing one Redis backend. A lone instance has no other instance to collide with.

Does the attacker need admin rights?

Yes, on at least one of the instances. That admin's tool server change then spreads to the others because the cache key is not prefixed.

Which version fixes CVE-2026-44552?

open-webui 0.9.0. Versions up to 0.8.12 are listed as vulnerable.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Open WebUI vulnerabilities

All Open WebUI entries