Skip to main content

AgentScope CVE-2026-51568

| EUVDEUVD-2026-90428 HIGH
Path Traversal (CWE-22)
2026-09-30 mitre GHSA-wfpw-mwxx-8vrf
8.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted input to AgentScope agent
  2. Delivery
    Agent invokes write_text_file tool
  3. Exploit
    Path traversal escapes intended directory
  4. Execution
    Overwrite config or code file
  5. Impact
    Integrity compromise or code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a deployed AgentScope agent (v1.0.0 through v1.0.18) that exposes or invokes the write_text_file tool/function, where an attacker can influence the file path argument - most realistically through untrusted content processed by the agent (indirect prompt injection) or a malicious task submitted to the agent. Limiting factors: the affected framework has a narrow deployment base; exploitation depends on the agent actually being wired to call write_text_file with attacker-influenceable paths; the CVSS assigns PR:L (some level of access to the agent), though a prompt-injection path could reduce this to effectively unauthenticated depending on how the agent ingests external input.

Impact

CVSS 3.1 base is 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N), driven by a network vector, low complexity, and only low privileges required. However, the raw score overstates real-world urgency for several reasons. AgentScope is a niche open-source multi-agent LLM framework, not broadly deployed enterprise infrastructure, so the exposed population is small. No EPSS score, no CISA KEV listing, and no SSVC decision data are provided, so there is no evidence of active or automatable exploitation. A public gist (Ro1ME) is referenced alongside the upstream issue, strongly implying proof-of-concept code exists, which raises the practical likelihood of opportunistic exploitation against exposed agent deployments. The vendor-assigned C:H is questionable for what is fundamentally an arbitrary file-WRITE primitive (write_text_file) - path traversal on a write path typically yields integrity impact, not direct confidentiality disclosure; verify the confidentiality rating with the vendor/reporter. Also note the PR:L rating conflicts with the most realistic exploitation model (indirect prompt injection through untrusted agent input), which would make it effectively unauthenticated in many deployments - this is a data conflict worth resolving before prioritization. Net: a real but bounded issue - moderate priority, elevated by likely POC availability but tempered by low deployment footprint and absence of active-exploitation signals.

Exploit ScenarioDerived

An attacker submits crafted input (e.g., via indirect prompt injection or a malicious task) to an AgentScope-based agent that exposes the write_text_file tool. The agent invokes write_text_file with an attacker-influenced path containing traversal sequences (../../), causing text to be written outside the intended output directory - overwriting configuration, source, or startup files and potentially chaining to code execution. A public gist appears to demonstrate the technique, so working exploit code likely exists.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 30, 2026

Path traversal in AgentScope 1.0.0 through 1.0.18 lets an attacker who can influence the path argument passed to the agent's write_text_file tool cause file writes outside the intended directory, resulting in arbitrary file overwrite on the host running the agent. The assessed CVSS 3.1 base score is 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L), reflecting a network-reachable, low-complexity issue that requires the attacker to hold low privileges relative to the agent (PR:L) while the primary impact is integrity, with limited availability impact and no confirmed confidentiality impact. Exploitation is realistic in deployments where the agent is wired to call write_text_file with attacker-influenceable paths, most plausibly via untrusted content processed by the agent (indirect prompt injection) or a malicious task submitted to it; no public exploit code was identified at time of analysis, and the CVE is not listed in CISA KEV.

RemediationAI

No vendor-released patch or fixed version was identified in the available data at time of analysis, so remediation is currently configuration- and isolation-based rather than upgrade-based; monitor https://github.com/agentscope-ai/agentscope/issues/1508 for an official fix and apply it as soon as a patched release is published. Primary compensating controls: remove or disable the write_text_file tool from the agent's registered tool set if the workflow does not require it (trade-off: legitimate file-writing functionality is lost), or wrap it with a path-checking shim that canonicalizes the resolved path, rejects absolute paths and any '../' traversal, and enforces an allowlist root so writes can only land inside a designated directory (trade-off: legitimate writes to other locations will be blocked and may break workflows). Run the agent process under a dedicated low-privilege OS account inside a container with a read-only root filesystem and only a dedicated scratch directory writable, so a successful traversal cannot overwrite system or application files (trade-off: some agent features requiring broader write access will fail). Finally, restrict what untrusted content the agent ingests and treat tool arguments derived from model output as untrusted input, since indirect prompt injection is the most plausible delivery vector for attacker-controlled paths.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AgentScope is an open-source multi-agent framework in which LLM-driven agents invoke registered tools, and write_text_file is one such filesystem-writing tool. The defect is a classic path traversal (CWE-22) root-cause class: the tool accepts a caller-supplied path and writes to it without adequately canonicalizing and constraining the resolved path to an expected root, so sequences such as ../ or an absolute path allow the write to escape the intended working directory. The CVE record and the assessed vector differ in the balance of impact - the record's vector (C:H/I:H/A:N) claims high confidentiality and integrity with no availability impact, while the assessment scores C:N/I:H/A:L, treating the realistic outcome as file modification/overwrite with possible disruption rather than a read exposure. The CPE supplied is a placeholder (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:*) indicating that no formal CPE has been assigned for the affected component, so product identification must rely on the version range and the vendor GitHub issue rather than CPE matching. Because the vulnerable surface is a tool called by the agent, the practical attack path is not a raw HTTP exploit but attacker influence over the arguments the agent passes to the tool, which is why indirect prompt injection and malicious task inputs are the dominant threat models.

Know when Agentscope gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.1 HIGH

Arbitrary file write via a tool call gives high integrity impact and limited availability (overwrite); no direct confidentiality from a write primitive; PR:L as tool invocation needs agent-level access.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

modelscope Agentscope v1.0.18-v1.0.0 is vulnerable to Path Traversal in write_text_file.

Executive ViewAI

Why It Matters

AgentScope versions 1.0.0 through 1.0.18 contain a path traversal flaw in the agent's write_text_file tool that allows arbitrary file overwrite on any host running an affected agent, and no vendor patch is currently available. The risk concentrates in deployments where agents process untrusted content or accept tasks from lower-privileged users, since those inputs can steer where files are written. Leadership should care because a successful attack can corrupt or replace configuration, model, and operational files on agent hosts, with integrity impact rated high and limited availability impact; there is no public exploit identified at time of analysis and the CVE is not in CISA KEV, so exposure is driven by architecture rather than widespread opportunistic attack.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: run affected AgentScope 1.0.0-1.0.18 agents under least-privilege accounts with filesystem access restricted to a dedicated directory, mount all other paths read-only, enforce path canonicalization and allowlisting at the write_text_file boundary (reject absolute paths and traversal sequences), restrict network reachability of agent endpoints to trusted authenticated callers, treat all agent-ingested content as untrusted and apply prompt-injection filtering, and deploy file integrity monitoring with alerting on unexpected file modifications by agent processes.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Low
emerging open-source multi-agent LLM framework, limited production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2024-48050 CRITICAL POC
9.8 Nov 04

In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. R

CVE-2024-8537 CRITICAL POC
9.1 Mar 20

A path traversal vulnerability exists in the modelscope/agentscope application, affecting all versions. Rated critical s

CVE-2024-8551 CRITICAL POC
9.1 Mar 20

A path traversal vulnerability exists in the save-workflow and load-workflow functionality of modelscope/agentscope vers

CVE-2024-8501 HIGH POC
8.8 Mar 20

An arbitrary file download vulnerability exists in the rpc_agent_client component of modelscope/agentscope version v0.0.

CVE-2024-8524 HIGH POC
7.5 Mar 20

A directory traversal vulnerability exists in modelscope/agentscope version 0.0.4. Rated high severity (CVSS 7.5), this

CVE-2024-8438 HIGH POC
7.5 Mar 20

A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. Rated high severity (CVSS 7.5), this vul

CVE-2026-51856 CRITICAL
9.8 Sep 30

Remote code execution in AgentScope 1.0.18 and 1.0.19 allows remote attackers to execute arbitrary Python in the service

CVE-2026-6603 MEDIUM POC
5.5 Apr 20

Remote code execution in ModelScope AgentScope up to version 1.0.18 allows unauthenticated network attackers to inject a

CVE-2026-6606 MEDIUM POC
5.5 Apr 20

Modelscope AgentScope versions up to 1.0.18 contain a server-side request forgery (SSRF) vulnerability in the _process_a

CVE-2026-6605 MEDIUM POC
5.5 Apr 20

Server-side request forgery in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers to man

CVE-2026-6604 MEDIUM POC
5.5 Apr 20

Server-side request forgery (SSRF) in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers

CVE-2026-85685 HIGH
8.7 Sep 04

Unauthenticated path traversal in AgentScope through 2.0.7.post1 allows remote attackers to copy arbitrary server-side d

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy