Summary
CVE-2026-82275 is a path traversal vulnerability (CWE-22) affecting Qwen-Agent, the open-source LLM application framework maintained by QwenLM, in versions through 0.0.34. The document parser fails to restrict file access to intended directories, allowing an unauthenticated attacker to submit an absolute file path and read arbitrary files accessible to the server process. The flaw carries a CVSS v4.0 base score of 8.7 (High).
Technical details
- Root cause: The document-parsing tools (
SimpleDocParser/DocParser) pass a caller-suppliedurl/path value directly into file-type detection and file-reading logic (qwen_agent/utils/utils.pyandqwen_agent/tools/simple_doc_parser.py) without validating that the resolved path stays within the intended working directory. - Trigger conditions: An attacker supplies an absolute local file path (e.g.,
/etc/passwd) instead of a legitimate document URL/path, either by invoking the parser directly or via the exposed HTTP interface. - Attack vector: Network — Qwen-Agent’s Gradio-based service exposes an unauthenticated HTTP endpoint (observed on port 7866) that accepts a JSON request with a
task=cacheaction and aurlparameter; this parameter is forwarded to the document parser without authentication or path sanitization. - Impact: Full-content disclosure of any file readable by the server process (e.g.,
/etc/passwdwas retrieved in the proof-of-concept), enabling exposure of configuration files, credentials, or other sensitive host data. No integrity or availability impact was demonstrated.
Affected software
- QwenLM Qwen-Agent (PyPI package
qwen-agent) — all versions 0 through 0.0.34 (inclusive)
Severity
- CVSS v3.1: 7.5 (HIGH) —
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS v4.0: 8.7 (HIGH) —
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)
Mitigation and recommended actions
- Immediate: No fixed release has been published as of this writing; monitor the QwenLM/Qwen-Agent GitHub repository for a patched version and upgrade as soon as one is available.
- Workarounds / network mitigations (until a patch is released):
- Do not expose the Qwen-Agent Gradio/HTTP interface (including the document-cache endpoint) directly to untrusted networks or the internet; bind it to localhost or place it behind authentication and network access controls.
- Reject document requests containing absolute file paths or
file://schemes that resolve outside the configuredwork_dir/workspace directory. - Run the Qwen-Agent server process with least-privilege file system permissions to limit the blast radius of any unauthorized file read.
- Deploy the service behind a reverse proxy/WAF that enforces authentication on all API endpoints.

