CVE Catalog

CVE-2026-51851

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.65%

51th percentile - higher than 51% of all known CVEs

Summary

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.

Risk Assessment

An attacker can write files to arbitrary locations outside the intended directory, potentially overwriting files, tampering with configuration, or achieving code execution.

Recommendation

Update modelscope agent-zero to a patched version or add path normalization and validation in save_text_file to prevent escaping the allowed directory.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS