News · DiggingBeagle record

Qwen-Agent local storage key could write outside its configured directory

A Qwen-Agent issue demonstrates traversal using model-controlled storage keys and reports separate special-key crashes. The patch was under discussion, so an affected release, in-the-wild exploit or universal remediation should not be inferred.

Published
Nov 22, 2026

The report

A local storage tool gives an AI assistant a convenient namespace for saving and retrieving data. In a reported Qwen-Agent issue, that namespace was not reliably constrained to the configured filesystem directory. A key containing parent-directory components was interpreted as a path with authority beyond the agent's allowed storage root.

The issue reproduction includes a write outside the intended root, as well as related errors when root or folder-like keys were supplied to operations expecting ordinary files. The second category is a correctness problem; the first is a security boundary crossing. They should not be treated as equivalent evidence of arbitrary code execution or a remote compromise.

A tool argument is not a filesystem permission

An agent may produce a storage key in response to text from a user, a retrieved page or its own plan. None of those sources should be able to grant the application the right to write outside its configured directory. Checking the literal input for a suspicious substring is weaker than resolving the path and proving that its final target remains below an authorized root; symlinks and platform-specific path forms may require additional checks.

The canonical case narrows the prerequisite to a tool invocation with an unsafe key under a process that already has the relevant filesystem rights. The available issue does not demonstrate that an internet stranger can trigger the tool without other access, nor does it establish customer impact. A proposed fix in pull request #1087 should not be described as released until the project confirms it.

A sound regression would supply parent traversals, absolute paths, empty and root keys, directory keys and symlink escapes against read, write, delete and scan operations. The result to observe is the actual filesystem effect, not whether the model stated that it intended to remain inside the storage directory.

Research behind this