# CVE-2024-8438: Path Traversal in modelscope/agentscope

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:49.971Z
- Modified: 2026-06-17T08:22:34.667Z
- Also known as: GHSA-f4hc-q562-cc5r, PYSEC-2025-80
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. The API endpoint `/api/file` does not properly sanitize the `path` parameter, allowing an attacker to read arbitrary files on the server.

(As written by CVE List.)

## Affected

- modelscope modelscope/agentscope: from unspecified up to latest
- agentscope (PyPI): up to 0.0.4
- modelscope agentscope: 0.0.4

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/3f170c58-42ee-422d-ab6f-32c7aa05b974> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8438> (advisory)
- <https://github.com/modelscope/agentscope> (package)
- <https://github.com/modelscope/agentscope/blob/af8e45ded37b3834c981473b309239e0102473d0/src/agentscope/studio/_app.py#L578> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/agentscope/PYSEC-2025-80.yaml> (web)
- <https://github.com/advisories/GHSA-f4hc-q562-cc5r> (advisory)

## Sources

- CVE List: [CVE-2024-8438](https://www.cve.org/CVERecord?id=CVE-2024-8438), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-f4hc-q562-cc5r](https://github.com/advisories/GHSA-f4hc-q562-cc5r), CC-BY-4.0, modified 2026-06-05
- NVD: [CVE-2024-8438](https://nvd.nist.gov/vuln/detail/CVE-2024-8438), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-80](https://osv.dev/vulnerability/PYSEC-2025-80), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-8438 · Whole record: https://cve.day/CVE-2024-8438.json · Rebuilt by cve.day 2026-11-25T22:58:52.395Z
