Skip to content
Low 3.1

Automatic memory extraction can overwrite another user's workspace memory through an unscoped update ID

GHSA-p9pc-ccw4-fxc5 First seen on SecPulse

Summary

Summary

In multi-user instances with automatic memory extraction enabled, an authenticated low-privilege user can cause the extraction reflector to return an updateId belonging to another user or workspace.

Memory.applyExtractedMemories receives the current userId and workspaceId,...

Affected packages

PackageAffected → Fixed
github repositoryMintplex-Labs/anything-llm
>= 1.13.0, <= 1.16.1→ d6e7a8be6fb617d95d99c30a2377b1c47c7a9386, >1.16.1
Original description The description as published by the source.

Summary

In multi-user instances with automatic memory extraction enabled, an authenticated low-privilege user can cause the extraction reflector to return an updateId belonging to another user or workspace.

Memory.applyExtractedMemories receives the current userId and workspaceId, but affected versions update an existing memory using only the model-supplied integer primary key. This allows the automatic extraction pipeline to persistently overwrite another user's workspace memory.

The overwritten memory can later be incorporated into the victim's system prompt. The demonstrated impact is cross-user integrity loss. This report does not claim confidentiality disclosure or code execution.

Suggested severity: Moderate
CVSS 3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N (5.3)
CWE: CWE-639, Authorization Bypass Through User-Controlled Key

Details

The automatic extraction job groups unprocessed chats by user_id and workspaceId, loads the memories belonging to that group, and passes recent user-controlled chat content through an Observer and Reflector.

The Reflector can invoke the registered save-memories tool with an update operation such as:

{
  "content": "attacker-controlled replacement",
  "scope": "WORKSPACE",
  "action": "update",
  "updateId": 1
}

The extraction job correctly passes the current security context to the memory model:

Memory.applyExtractedMemories(
  userId,
  workspaceId,
  finalMemories,
  globalSlots…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details