CVE-2026-51851

Published Oct 29, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
modelscope agent-zero 1.7, 1.8, 1.9, and 1.10 is vulnerable to Directory Traversal in python/helpers/file_browser.py:FileBrowser.save_text_file. The save_text_file method accepts user-controlled file paths without normalization or validation, allowing path traversal attacks.

Analysis

AI-generated

Technical impact

Agent-Zero versions 1.7 through 1.10 expose a directory traversal vulnerability in the FileBrowser.save_text_file method. The method accepts user-controlled file paths without normalising or validating them, allowing an attacker to craft paths that escape the intended directory. By writing files outside the designated area, an attacker can overwrite critical configuration files or place malicious scripts that could be executed, thereby compromising confidentiality or integrity of system files.

Affected Systems

modelscope Agent‑Zero 1.7, 1.8, 1.9, and 1.10 are affected. The vulnerability resides in the python/helpers/file_browser.py module shared across these releases.

Risk and Exploitability

The CVSS score of 7.5 classifies the vulnerability as High severity. The issue is not currently listed in the CISA KEV catalog and an EPSS score of < 1% indicates that it is not widely exploited. In theory, the vulnerability can be exploited if an attacker can invoke the save_text_file function—through authenticated API use, chat interface, or other user inputs. While no active exploits are documented, the ability to write arbitrary files poses a significant risk, especially if the application runs with elevated privileges or has unrestricted filesystem access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Agent-Zero release that incorporates the file path validation fix.
  • If an upgrade is unavailable, implement server‑side input sanitisation: normalise paths, reject relative components, and restrict write targets to a verified base directory.
  • Configure operating‑system permissions so that the user running Agent‑Zero has write access only to the intended database or workspace directory, preventing accidental or malicious file creation elsewhere.

Generated by OpenCVE AI on November 4, 2026 at 11:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Directory Traversal via Unvalidated File Paths in Agent-Zero's FileBrowser
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Agent-zero
Agent-zero agent-zero
Vendors & Products Agent-zero
Agent-zero agent-zero
Type Values Removed Values Added
Title Directory Traversal via Unvalidated File Paths in Agent-Zero's FileBrowser
Weaknesses CWE-22
Type Values Removed Values Added
Description modelscope agent-zero 1.7, 1.8, 1.9, and 1.10 is vulnerable to Directory Traversal in python/helpers/file_browser.py:FileBrowser.save_text_file. The save_text_file method accepts user-controlled file paths without normalization or validation, allowing path traversal attacks.
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2026, 1:04 AM
Reserved
Jun 8, 2026, 12:00 AM
Status
Deferred
Published
Oct 29, 2026, 6:17 PM
Modified
Nov 4, 2026, 1:17 AM