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

CVE-2026-101080: Tencent AI-Infra-Guard Path Traversal

CVE-2026-101080 is a path traversal vulnerability in Tencent AI-Infra-Guard affecting versions up to 4.5.2 and 4.6.2. This flaw allows unauthorized file access through local exploitation. This article covers technical details, affected versions, impact assessment, 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-101080 Overview

CVE-2026-101080 is a path traversal vulnerability [CWE-22] in Tencent AI-Infra-Guard versions up to 4.5.2/4.6.2. The flaw resides in the startsWith logic within the skill_scan/tools/dir/dir_actions.py file, part of the File Access component. An attacker with local access can manipulate file path inputs to bypass directory containment checks and access files outside the intended working folder. The issue was addressed in version 4.6.0 with commit ac0384edc9dbea3b226edefcf50613bd8509134f.

Critical Impact

A local attacker with low privileges can traverse directories and read or write files outside the authorized scanning folder, undermining AI infrastructure scanning boundaries.

Affected Products

  • Tencent AI-Infra-Guard versions up to 4.5.2
  • Tencent AI-Infra-Guard versions up to 4.6.2 (per NVD description)
  • File Access component: skill_scan/tools/dir/dir_actions.py

Discovery Timeline

Technical Details for CVE-2026-101080

Vulnerability Analysis

The vulnerability is a classic path containment bypass. The affected code used Python's str.startswith() to confirm that a requested path resided inside an authorized folder. This string-prefix check does not understand filesystem semantics. An attacker can craft a path that shares a prefix with the allowed folder but points elsewhere. For example, if the allowed folder is /tmp/scan, a path such as /tmp/scan_evil/file passes the startsWith check while residing outside the intended directory. The flaw affects AI-Infra-Guard's file access tooling used during skill and MCP scanning operations. See GitHub Issue #538 for the original report.

Root Cause

The root cause is the use of a string prefix comparison for directory containment enforcement. Prefix matching permits sibling-directory confusion and does not canonicalize paths across platforms. The fix replaces startswith with os.path.commonpath([abs_path, folder]) != folder, which performs component-wise path containment after os.path.realpath normalization.

Attack Vector

Exploitation requires local access and low privileges, with some user interaction. An attacker invokes the vulnerable file-access tool with a crafted path. Because the check runs after os.path.realpath but still uses prefix matching, carefully named sibling directories can defeat the boundary. The exploit is publicly described in advisory sources.

python
# Patch: skill-scan/skill_scan/tools/dir/dir_actions.py
        abs_path = os.path.realpath(path)
        if context and context.folder:
            folder = os.path.realpath(context.folder)
-           if not abs_path.startswith(folder):
+           if os.path.commonpath([abs_path, folder]) != folder:
                return {
                    'success': False,
                    'message': f'Path is not allowed: {path}',
# Source: https://github.com/Tencent/AI-Infra-Guard/commit/ac0384edc9dbea3b226edefcf50613bd8509134f
python
# Patch: mcp-scan/mcp_scan/tools/file/write_file.py
    try:
        # Create directory if it does not exist
-       directory = os.path.dirname(file_path)
-       if not directory.startswith(context.folder):
+       directory = os.path.realpath(os.path.dirname(file_path))
+       folder = os.path.realpath(context.folder)
+       if os.path.commonpath([directory, folder]) != folder:
            return {"success": False, "message": f"Path is not allowed: {file_path}"}
        if directory and not os.path.exists(directory):
            os.makedirs(directory, exist_ok=True)
# Source: https://github.com/Tencent/AI-Infra-Guard/commit/ac0384edc9dbea3b226edefcf50613bd8509134f

Detection Methods for CVE-2026-101080

Indicators of Compromise

  • File access or write attempts targeting paths that resolve outside the configured AI-Infra-Guard scan folder.
  • Scanner log entries containing Path is not allowed messages, which indicate attempted traversal after patching.
  • Creation of unexpected files in directories adjacent to the authorized scan folder (sibling-directory naming patterns).

Detection Strategies

  • Enable verbose logging on the AI-Infra-Guard process and alert on repeated path validation failures from the file-access tools.
  • Monitor process arguments and child-process file operations originating from the skill_scan and mcp_scan Python modules.
  • Review source control to confirm deployed binaries include commit ac0384edc9dbea3b226edefcf50613bd8509134f.

Monitoring Recommendations

  • Instrument endpoints running AI-Infra-Guard with filesystem auditing (auditd, Sysmon FileCreate) scoped to the scanner's working directory and its parent.
  • Baseline normal scan output locations and alert on writes outside the baseline.
  • Correlate local account activity invoking the scanner with path validation errors to identify misuse.

How to Mitigate CVE-2026-101080

Immediate Actions Required

  • Upgrade Tencent AI-Infra-Guard to version 4.6.0 or later from the official GitHub Release page.
  • Verify the deployed codebase contains commit ac0384edc9dbea3b226edefcf50613bd8509134f in both dir_actions.py and write_file.py.
  • Restrict local account access to systems running AI-Infra-Guard to trusted operators only.

Patch Information

The fix is tracked as GitHub Pull Request #539 and committed as ac0384edc9dbea3b226edefcf50613bd8509134f. The patch replaces str.startswith containment with os.path.commonpath evaluation after os.path.realpath canonicalization. Additional details are available in the VulDB advisory for CVE-2026-101080.

Workarounds

  • Run AI-Infra-Guard inside a container or chroot that confines filesystem visibility to the intended scan directory only.
  • Apply least-privilege filesystem ACLs so the scanner process cannot read or write outside its designated working folder.
  • Audit and remove sibling directories whose names share a prefix with the configured scan folder until the patch is applied.
bash
# Verify installed version and apply the fix
pip show ai-infra-guard | grep -i version

# Upgrade to the patched release
git clone https://github.com/Tencent/AI-Infra-Guard.git
cd AI-Infra-Guard
git checkout v4.6.0

# Confirm the fix commit is present
git log --oneline | grep ac0384ed

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.