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.