/

CVE-2026-114106

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in HKUDS Vibe-Trading Agent

CVE-2026-114106

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Sensitive File Disclosure and Credential Exposure

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

A path traversal vulnerability in HKUDS Vibe-Trading allows remote attackers to use LLM agent file-reading tools to access files outside the intended workspace.

If the agent accepts attacker-controlled prompts and exposes insufficiently sandboxed file-read capabilities, sensitive files such as system credentials, environment variables, and application secrets may be disclosed.

A path traversal vulnerability in HKUDS Vibe-Trading allows remote attackers to use LLM agent file-reading tools to access files outside the intended workspace.

If the agent accepts attacker-controlled prompts and exposes insufficiently sandboxed file-read capabilities, sensitive files such as system credentials, environment variables, and application secrets may be disclosed.

Affected context

The vulnerability occurs in Vibe-Trading deployments where an LLM agent can invoke file-reading tools without consistently enforcing a trusted directory boundary. Risk is higher when remote users can submit prompts that influence tool selection or file paths, and when the agent process can read sensitive operating-system or application files.

The vulnerability occurs in Vibe-Trading deployments where an LLM agent can invoke file-reading tools without consistently enforcing a trusted directory boundary. Risk is higher when remote users can submit prompts that influence tool selection or file paths, and when the agent process can read sensitive operating-system or application files.

Exploit preconditions

  • Attack surface: Remote-facing LLM agent prompts and file-read tools
  • Required access: Ability to interact with the agent or submit prompts that reach its tool-calling workflow
  • Trigger point: Invocation of read_document or other file-reading tools with an attacker-influenced path
  • Why exploitation is possible: Path validation and sandbox enforcement are absent or inconsistently applied, allowing file access outside the intended document directory
  • Attack surface: Remote-facing LLM agent prompts and file-read tools
  • Required access: Ability to interact with the agent or submit prompts that reach its tool-calling workflow
  • Trigger point: Invocation of read_document or other file-reading tools with an attacker-influenced path
  • Why exploitation is possible: Path validation and sandbox enforcement are absent or inconsistently applied, allowing file access outside the intended document directory

Why this happens

The underlying bug is insufficient validation and confinement of filesystem paths supplied to file-reading functionality. A path is treated as usable without reliably resolving it against an approved base directory and rejecting traversal beyond that boundary.

This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where attacker-controlled path input can cause access to unintended files. In an agent environment, tool authorization and filesystem permissions must supplement path validation rather than relying on prompts or tool names as security boundaries.

The underlying bug is insufficient validation and confinement of filesystem paths supplied to file-reading functionality. A path is treated as usable without reliably resolving it against an approved base directory and rejecting traversal beyond that boundary.

This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where attacker-controlled path input can cause access to unintended files. In an agent environment, tool authorization and filesystem permissions must supplement path validation rather than relying on prompts or tool names as security boundaries.

Potential impact

  • Sensitive operating-system files could be disclosed
  • API keys and other secrets in process environment data could be exposed
  • Root or service-account credentials could be revealed
  • Application data and trading-related information could be accessed
  • Exposed credentials could enable follow-on unauthorized access or lateral movement
  • Sensitive operating-system files could be disclosed
  • API keys and other secrets in process environment data could be exposed
  • Root or service-account credentials could be revealed
  • Application data and trading-related information could be accessed
  • Exposed credentials could enable follow-on unauthorized access or lateral movement

General mitigation guidance

Mitigation generally focuses on enforcing a single, explicit filesystem trust boundary for every file-reading operation.

Common defensive patterns include:

  • Resolving requested paths against an approved directory and rejecting paths that escape it
  • Applying identical sandbox checks to every file-read tool, including tools with alternate authorization gates
  • Using capability-based file access or opaque document identifiers instead of accepting arbitrary paths
  • Running the agent with a dedicated low-privilege account and minimal filesystem permissions
  • Keeping secrets out of readable environment variables and accessible application directories where practical
  • Separating agent workloads from sensitive host and control-plane resources
  • Treating user prompts and tool arguments as untrusted input and requiring explicit policy enforcement before tool execution

Mitigation generally focuses on enforcing a single, explicit filesystem trust boundary for every file-reading operation.

Common defensive patterns include:

  • Resolving requested paths against an approved directory and rejecting paths that escape it
  • Applying identical sandbox checks to every file-read tool, including tools with alternate authorization gates
  • Using capability-based file access or opaque document identifiers instead of accepting arbitrary paths
  • Running the agent with a dedicated low-privilege account and minimal filesystem permissions
  • Keeping secrets out of readable environment variables and accessible application directories where practical
  • Separating agent workloads from sensitive host and control-plane resources
  • Treating user prompts and tool arguments as untrusted input and requiring explicit policy enforcement before tool execution

How teams detect issues like this

Detection can combine static analysis, runtime monitoring, and policy review.

Useful approaches include:

  • Searching for file APIs that consume user-controlled or model-generated paths without canonicalization and boundary checks
  • Reviewing every agent tool for consistent authorization, sandboxing, and path validation
  • Testing whether normalized paths remain within an approved directory, including symbolic links and alternate path representations
  • Monitoring agent file-access events for reads of system paths, credential locations, environment data, or unexpected directories
  • Enforcing code-review and CI policies that flag unrestricted filesystem access in remotely reachable agent tools
  • Using automated security review tools to identify path concatenation and missing containment checks

Detection can combine static analysis, runtime monitoring, and policy review.

Useful approaches include:

  • Searching for file APIs that consume user-controlled or model-generated paths without canonicalization and boundary checks
  • Reviewing every agent tool for consistent authorization, sandboxing, and path validation
  • Testing whether normalized paths remain within an approved directory, including symbolic links and alternate path representations
  • Monitoring agent file-access events for reads of system paths, credential locations, environment data, or unexpected directories
  • Enforcing code-review and CI policies that flag unrestricted filesystem access in remotely reachable agent tools
  • Using automated security review tools to identify path concatenation and missing containment checks

Sources

SourceLink
github.comgithub.com/HKUDS/Vibe-Trading/security/advisories/GHSA-5rmq-chc7-m22f
vulncheck.comvulncheck.com/advisories/hkuds-vibe-trading-0.1.0-before-0.1.7-path-traversal-via-read-document-and-safe-user-path

Frequently asked

questions

Yes, when a remote user can submit prompts to an agent that exposes the affected file-reading capabilities and the agent process can access the requested files.

Not necessarily. The relevant access may be limited to the agent interface, although the files exposed depend on the agent's runtime permissions.

Enforce canonical path containment for every file-read operation, restrict access to an explicit document directory, and apply least-privilege filesystem permissions.

Treat model-generated tool arguments as untrusted, apply centralized authorization and sandboxing, test path-boundary edge cases, and monitor file access for sensitive locations.

Yes, when a remote user can submit prompts to an agent that exposes the affected file-reading capabilities and the agent process can access the requested files.

Not necessarily. The relevant access may be limited to the agent interface, although the files exposed depend on the agent's runtime permissions.

Enforce canonical path containment for every file-read operation, restrict access to an explicit document directory, and apply least-privilege filesystem permissions.

Treat model-generated tool arguments as untrusted, apply centralized authorization and sandboxing, test path-boundary edge cases, and monitor file access for sensitive locations.

Find out what's already
exploitable in your codebase.