Skip to main content
Vulnerability Database/CVE-2026-114106

CVE-2026-114106: HKUDS Vibe-Trading Path Traversal Flaw

CVE-2026-114106 is a path traversal vulnerability in HKUDS Vibe-Trading that enables attackers to read sensitive server files including credentials and API keys through LLM agent tools. This article covers technical details, affected versions, impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114106 Overview

CVE-2026-114106 is a path traversal vulnerability [CWE-22] affecting HKUDS Vibe-Trading versions 0.1.0 through 0.1.6. The flaw resides in LLM agent file-read tools that lack adequate sandbox enforcement. Remote attackers can prompt the agent to invoke the read_document tool, which performs no sandbox checks, or abuse safe_user_path-gated tools to escape the intended directory. Successful exploitation discloses sensitive host files, including /etc/shadow, /proc/self/environ (which can expose API keys), and credentials under /root. The vulnerability requires no authentication and no user interaction, making it exploitable over the network against any exposed Vibe-Trading agent.

Critical Impact

Unauthenticated attackers can read arbitrary files on the host, leaking credentials, API keys, and system secrets through prompt-driven LLM tool calls.

Affected Products

  • HKUDS Vibe-Trading 0.1.0 through 0.1.6
  • The read_document LLM agent tool (no sandbox checks)
  • Tools gated by safe_user_path that fail to prevent traversal

Discovery Timeline

  • 2026-10-21 - CVE-2026-114106 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114106

Vulnerability Analysis

Vibe-Trading exposes file-handling tools to a large language model (LLM) agent so the agent can satisfy user requests involving local documents. The read_document tool reads files from the host without validating that the requested path is confined to an allowed directory. Separate tools gated by a safe_user_path helper also fail to canonicalize paths or reject traversal sequences before dispatching the read.

An attacker who can submit a prompt to the agent can request arbitrary absolute paths or use .. sequences to walk out of the intended workspace. The agent then performs the read on behalf of the attacker and returns file contents in its response. Because the read runs with the service process privileges, the attacker can retrieve /etc/shadow password hashes, environment variables holding exchange or vendor API keys from /proc/self/environ, and files under /root.

Root Cause

The root cause is missing path containment in LLM tool handlers. read_document performs no sandbox check at all, and safe_user_path does not normalize symlinks or reject upward traversal before being used as a gate. These are classic [CWE-22] failures surfaced through an LLM tool-calling interface rather than a traditional HTTP endpoint.

Attack Vector

Exploitation is network-reachable through the agent's prompt interface. The attacker crafts a natural-language instruction that induces the model to call read_document with a target path such as /etc/shadow or /proc/self/environ. No credentials are required and no user interaction on the victim side is needed. Technical details are documented in the GitHub Security Advisory GHSA-5rmq-chc7-m22f and the VulnCheck Path Traversal Advisory.

Detection Methods for CVE-2026-114106

Indicators of Compromise

  • Agent tool-call logs showing read_document invocations targeting absolute paths outside the configured workspace, especially /etc/shadow, /root/, or /proc/self/environ.
  • Prompt transcripts containing traversal patterns such as ../../, URL-encoded %2e%2e%2f, or references to sensitive system files.
  • Outbound responses from the agent that embed hashed passwords, SSH keys, or environment variable dumps.

Detection Strategies

  • Instrument the LLM tool layer to log every path argument passed to read_document and safe_user_path, and alert on paths resolving outside the allowed root after canonicalization.
  • Correlate prompt content with resulting tool calls to flag conversations where the user steers the agent toward system file reads.
  • Deploy file integrity and access monitoring on the host to detect reads of /etc/shadow, /root/*, and /proc/self/environ by the Vibe-Trading process.

Monitoring Recommendations

  • Forward Vibe-Trading application logs and host audit logs (auditd or equivalent) to a central analytics platform for retention and correlation.
  • Alert on process-level file access by the service account to paths outside its working directory.
  • Review API key usage telemetry from downstream exchanges and LLM providers for anomalies that could indicate leaked credentials.

How to Mitigate CVE-2026-114106

Immediate Actions Required

  • Upgrade HKUDS Vibe-Trading to version 0.1.7 or later, which addresses the path traversal in read_document and safe_user_path handling.
  • Rotate any secrets reachable from the host, including values stored in environment variables, exchange API keys, and credentials under /root.
  • Restrict network exposure of the agent so only trusted users can submit prompts until patching completes.

Patch Information

Upgrade to Vibe-Trading 0.1.7 or newer. Refer to the GitHub Security Advisory GHSA-5rmq-chc7-m22f for the fixed release and change details.

Workarounds

  • Run Vibe-Trading inside a container or chroot with a read-only root filesystem and no access to host secret paths.
  • Drop the service to a dedicated low-privilege user with no read permission to /etc/shadow, /root, or production .env files.
  • Add an allowlist wrapper around read_document that canonicalizes the path and rejects any resolution outside a fixed documents directory.
bash
# Configuration example
# Upgrade to the fixed release
pip install --upgrade "vibe-trading>=0.1.7"

# Run under a restricted user with a confined workspace
useradd -r -m -d /srv/vibe vibe
chown -R vibe:vibe /srv/vibe/documents
sudo -u vibe vibe-trading --workspace /srv/vibe/documents

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.