# CVE-2026-58166: OpenBMB ChatDev - Unauthenticated Path Traversal in Upload Handler Allows Arbitrary File Write and Delete

- Severity: High 8.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA: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.85%, higher than 56% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-30T15:51:20.900Z
- Modified: 2026-11-08T14:06:48.638Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

OpenBMB ChatDev through 2.2.0, fixed in commit 4fd4da6, contains a path traversal vulnerability that allows unauthenticated remote attackers to write or delete arbitrary files by supplying a malicious multipart filename in the file upload endpoint. Attackers can send a crafted filename containing path traversal sequences or an absolute path to the POST uploads session endpoint, which constructs the destination path without sanitization in save_upload_file, causing file write and cleanup operations to target attacker-chosen paths on the server filesystem.

(As written by CVE List.)

## Affected

- OpenBMB ChatDev: up to 2.2.0 (not affected: 4fd4da603801766b14ad8788649cfc1ad21f99a6)

## Every score

- VulnCheck: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- VulnCheck: CVSS:4.0 8.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/OpenBMB/ChatDev/issues/638> (exploit, issue-tracking, technical-description)
- <https://github.com/OpenBMB/ChatDev/pull/641> (issue-tracking, patch)
- <https://github.com/OpenBMB/ChatDev/commit/4fd4da603801766b14ad8788649cfc1ad21f99a6> (patch)
- <https://www.vulncheck.com/advisories/openbmb-chatdev-unauthenticated-path-traversal-in-upload-handler-allows-arbitrary-file-write-and-delete> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-58166](https://www.cve.org/CVERecord?id=CVE-2026-58166), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-58166](https://nvd.nist.gov/vuln/detail/CVE-2026-58166), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58166 · Whole record: https://cve.day/CVE-2026-58166.json · Rebuilt by cve.day 2026-11-25T22:59:26.714Z
