CVE-2026-51570 in Agentscopeinfo

Summary

by MITRE • 10/01/2026

modelscope Agentscope v1.0.0-v1.0.8 is vulnerable to Path Traversal in insert_text_file.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 10/01/2026

The vulnerability identified in ModelScope AgentScope versions ranging from 1.0.0 through 1.0.8 constitutes a critical path traversal flaw located within the insert_text_file function. This security defect arises due to insufficient validation and sanitization of user-supplied input parameters that dictate file paths or names during text insertion operations. When an application processes these inputs, it fails to adequately restrict access to directories outside the intended scope, allowing attackers to manipulate relative paths using standard directory traversal sequences such as dot-dot-slash characters. This lack of strict boundary enforcement enables the manipulation of filesystem navigation logic, effectively bypassing security controls designed to confine file operations to specific safe directories.

From a technical perspective, this flaw aligns with Common Weakness Enumeration identifier CWE-22, which classifies improper limitation of a pathname to a restricted directory as path traversal. The root cause lies in the application's failure to canonicalize or strictly validate the resolved absolute path against an allowed base directory before performing write operations. By injecting maliciously crafted sequences into the input stream, an attacker can redirect file writes to arbitrary locations on the host system where the AgentScope service is executing. This capability undermines the fundamental principle of least privilege and isolation that should govern application-level file handling mechanisms.

The operational impact of this vulnerability is severe, particularly in environments where AgentScope is deployed with elevated privileges or within containerized infrastructure lacking strict filesystem restrictions. An attacker exploiting this flaw can overwrite critical system configuration files, inject malicious scripts into executable directories, or corrupt essential data stores managed by the framework. In a multi-tenant scenario, such as those common in cloud-native AI development platforms, successful exploitation could lead to cross-tenant data leakage or unauthorized access to sensitive resources belonging to other users sharing the same infrastructure. Furthermore, if combined with other vulnerabilities like arbitrary file read capabilities, this traversal flaw can facilitate comprehensive system compromise by allowing attackers to exfiltrate credentials, private keys, or proprietary model weights stored on disk.

This vulnerability maps directly to several techniques within the MITRE ATT&CK framework, specifically T1083 File and Directory Discovery for reconnaissance purposes if used in conjunction with read operations, and more critically T1564.002 Hidden Files and Directories when used to conceal malicious artifacts or modify hidden configuration files. It also relates to T1105 Ingress Tool Transfer if the attacker uses the write capability to drop remote access tools onto the compromised host for persistent control. The ability to write arbitrary content to specific locations makes this a potent vector for establishing persistence or executing further attacks within the network perimeter.

Mitigation strategies must prioritize immediate patching of AgentScope to version 1.0.9 or later, where the developers have implemented robust input validation and path canonicalization checks. For organizations unable to upgrade immediately due to dependency constraints, compensating controls should be enforced at the infrastructure level. This includes configuring container runtimes with read-only root filesystems wherever possible, restricting write permissions for application service accounts to only necessary directories using operating system-level access control lists, and deploying web application firewalls or runtime security agents that can detect and block anomalous path traversal patterns in real-time network traffic. Additionally, developers should review any custom integrations of the insert_text_file function to ensure they adhere to secure coding practices by always resolving paths to their absolute forms and verifying they reside within an expected whitelist directory before proceeding with file operations.

Responsible

MITRE

Reservation

06/08/2026

Disclosure

10/01/2026

Moderation

accepted

EPSS

0.00392

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!