/

CVE-2026-82275

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in Qwen-Agent Document Parser

CVE-2026-82275

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Read and Information Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Qwen-Agent through version 0.0.34 contains a path traversal weakness in its document parser, allowing user-supplied paths to escape intended directories. An attacker may use the unauthenticated Gradio interface to read files accessible to the server process.

Affected context

The issue may occur in deployments that expose Qwen-Agent's Gradio interface without authentication and use the document parser to process user-provided file paths. Risk is increased when the server process has read access to sensitive application, system, credential, or configuration files and the parser does not constrain access to an approved directory.

Exploit preconditions

  • Attack surface: The document-upload or document-processing functionality exposed through the Gradio interface
  • Required access: Access to the interface; authentication may not be required when the deployment leaves it unauthenticated
  • Trigger point: Document parsing of an attacker-controlled file path
  • Why exploitation is possible: The parser does not sufficiently validate or constrain absolute paths to the intended directory, allowing file access outside the permitted location

Why this happens

The underlying bug is improper neutralization of path elements used to identify files, which maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory. The parser trusts a user-controlled path without reliably canonicalizing it and verifying that the resulting file remains within an approved directory boundary. This insecure pattern allows filesystem access to be determined by external input rather than by an enforced server-side allowlist or containment check.

Potential impact

  • Sensitive application configuration files may be disclosed
  • Credentials, tokens, or private keys may be exposed if readable by the server process
  • Source code and internal data may be retrieved
  • Information gathered from local files could support follow-on attacks
  • Privacy, confidentiality, and compliance protections could be weakened

General mitigation guidance

Mitigation generally focuses on reducing trust in user-supplied paths and enforcing filesystem boundaries before opening files.

Common defensive patterns include:

  • Resolve and canonicalize paths before access checks
  • Require the resolved path to remain within a dedicated, approved directory
  • Prefer server-side file identifiers or opaque handles over client-supplied filesystem paths
  • Use strict allowlists for permitted filenames and document types
  • Reject absolute paths, parent-directory components, symbolic-link escapes, and unexpected path formats
  • Run the service with least-privilege filesystem permissions
  • Keep sensitive files outside directories readable by the application
  • Apply authentication and authorization controls to interfaces that process documents

How teams detect issues like this

Organizations can detect this class of issue through:

  • Static analysis rules for file operations using request, form, or interface parameters
  • Code review checks for missing canonicalization and directory-containment validation
  • Tests covering absolute paths, parent-directory components, symbolic links, and alternate path representations
  • Runtime monitoring for document requests that reference paths outside approved directories
  • Policy enforcement requiring authenticated access and sandboxed document-processing locations
  • Automated security review tools that flag user-controlled input reaching filesystem APIs

Sources

SourceLink
github.comgithub.com/QwenLM/Qwen-Agent
github.comgithub.com/QwenLM/Qwen-Agent/blob/31a4d36d123688581a9e9744427272b33ce940e0/qwen_agent/tools/simple_doc_parser.py
github.comgithub.com/QwenLM/Qwen-Agent/blob/31a4d36d123688581a9e9744427272b33ce940e0/qwen_agent/utils/utils.py
github.comgithub.com/QwenLM/Qwen-Agent/issues/912
vulncheck.comvulncheck.com/advisories/qwen-agent-arbitrary-file-read-via-caller-supplied-document-path

Frequently asked

questions

Yes, when the Gradio interface is reachable and permits unauthenticated document-processing requests. Exploitation still depends on the server process having read access to the targeted files.

The attacker generally needs network access to the exposed interface. If authentication is enabled, valid access may be required, while an unauthenticated deployment may allow requests without an account.

Accept only controlled file identifiers or files stored in a dedicated directory, canonicalize paths, and verify that every resolved path remains within that directory before reading it.

Combine strict path validation with least-privilege service accounts, filesystem isolation, authenticated interfaces, security-focused tests, and monitoring for unexpected file access.

Find out what's already
exploitable in your codebase.