Skip to main content

ChatDev CVE-2026-58166

| EUVDEUVD-2026-40373 HIGH
Path Traversal (CWE-22)
2026-06-30 VulnCheck GHSA-hh77-fhmp-pqfv
8.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed ChatDev upload endpoint
  2. Delivery
    POST multipart with '../' traversal filename
  3. Exploit
    Path built without sanitization in save_upload_file
  4. Execution
    Write/delete file at attacker-chosen path
  5. Persist
    Overwrite cron/app code or destroy files
  6. Impact
    Achieve code execution or service disruption

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

Exploitation requires network access to ChatDev's file upload endpoint - specifically the POST uploads session endpoint - and the ability to send a multipart request with an attacker-chosen filename containing path traversal sequences ('../') or an absolute path; per AV:N/AC:L/PR:N/UI:N this works against an exposed instance with no authentication and no user interaction. The primary limiting factor is reachability: the instance's upload endpoint must be network-accessible to the attacker, since ChatDev is typically run as a local/self-hosted tool rather than internet-facing. Effective impact is further bounded by the OS-level write/delete permissions of the ChatDev process account - what the attacker can overwrite or delete is limited to paths that process can already modify.

Impact

Signals are mostly consistent and point to a genuine priority rather than an inflated-CVSS issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) shows network reachability, low complexity, no privileges, and no user interaction - i.e., trivially reachable - with high integrity and availability impact (VI:H/VA:H) but no confidentiality impact (VC:N), which matches an arbitrary-write/delete primitive rather than file read. Publicly available exploit code raises practical risk, and the dedicated VulnCheck advisory plus a public GitHub issue (#638) lower the bar for opportunistic attackers. Tempering this: no EPSS score was provided in the input, the vulnerability is NOT listed in CISA KEV, and ChatDev's real-world production footprint is limited, so widespread mass exploitation is less likely than targeted abuse of exposed instances. Arbitrary file write to locations like cron directories or application code can escalate to remote code execution, so the effective impact may exceed the literal C:N rating.

Exploit ScenarioDerived

An attacker who can reach an exposed ChatDev instance sends a POST request to the uploads session endpoint with a multipart filename like '../../../../etc/cron.d/payload', writing an attacker-controlled file outside the temp directory; because AV:N/AC:L/PR:N/UI:N, this needs no authentication, no user interaction, and only a single crafted request. Dropping a file into a cron directory or overwriting application code can escalate to server-side code execution, while the traversal-aware cleanup can instead be abused to delete arbitrary files and disrupt the service. Public exploit code for this path traversal is already available.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – Jun 30, 2026

Arbitrary file write and delete in OpenBMB ChatDev through 2.2.0 lets unauthenticated remote attackers control destination paths on the server by abusing the multipart filename in the upload session endpoint. Because save_upload_file joins the attacker-supplied filename onto the temp directory without sanitization, a traversal or absolute-path filename redirects both the write and the subsequent cleanup unlink to arbitrary host locations. Publicly available exploit code exists and a vendor fix is available (commit 4fd4da6); there is no public exploit identified as actively exploited in CISA KEV at time of analysis.

Earlier versions of this analysis (2)
v2 Jun 30, 2026 - 17:41 cvss changed CVSS 8.8

Arbitrary file write and delete in OpenBMB ChatDev through 2.2.0 allows unauthenticated remote attackers to plant or destroy files anywhere the server process can reach by abusing the session file-upload endpoint. The save_upload_file routine builds the destination path directly from the attacker-controlled multipart filename, so path-traversal sequences (../) or absolute paths escape the intended upload directory. Publicly available exploit code exists and a vendor patch (commit 4fd4da6) is available, though the issue is not listed in CISA KEV and no EPSS score was provided.

v1 Jun 30, 2026 - 17:15 CVSS 9.1

Arbitrary file write and delete in OpenBMB ChatDev through version 2.2.0 lets unauthenticated remote attackers control destination paths on the server filesystem by submitting a crafted multipart filename to the file-upload session endpoint. The save_upload_file routine builds the destination path without sanitization, so path traversal sequences or absolute paths redirect both the write and the subsequent cleanup/delete operation. Publicly available exploit code exists and the issue is fixed in commit 4fd4da6; no public exploit identified in CISA KEV at time of analysis.

RemediationAI

Upgrade to a ChatDev build that includes the fix commit 4fd4da603801766b14ad8788649cfc1ad21f99a6 (merged via PR https://github.com/OpenBMB/ChatDev/pull/641); since the upstream fix is a tagged commit/PR rather than a clearly named release, treat 'Upstream fix available (commit/PR); released patched version not independently confirmed' and pin to or beyond that commit. If you cannot patch immediately, do not expose the upload session endpoint to untrusted networks: restrict access to the POST uploads endpoint via authentication, a reverse-proxy allowlist, or network segmentation (trade-off: breaks remote/multi-user upload workflows), and run ChatDev under a low-privilege service account on a filesystem where the process cannot write to sensitive paths such as cron directories, web roots, or application source (trade-off: requires careful permission hardening and may interrupt legitimate file handling). As a code-level workaround mirroring the official fix, normalize the multipart filename to its basename before joining it to the storage directory. Consult the VulnCheck advisory (https://www.vulncheck.com/advisories/openbmb-chatdev-unauthenticated-path-traversal-in-upload-handler-allows-arbitrary-file-write-and-delete) for details.

Affected VersionsENISA

ChatDev 0 ≤2.2.0
ChatDev patch: 4fd4da603801766b14ad8788649cfc1ad21f99a6

Affected Packages

euvd chatdev no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

ChatDev is OpenBMB's open-source multi-agent LLM framework for collaborative software development; the affected component is its FastAPI-based attachment/upload handler (server/services/attachment_service.py). The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal): the multipart 'filename' field is fully attacker-controlled, yet AttachmentService.save_upload_file used 'upload.filename or "upload.bin"' and joined it directly onto a freshly created temp directory. A filename such as '../../../etc/cron.d/x' or an absolute path '/abs/path/secret.key' escapes the intended temp/WareHouse area, so the file-write operation lands on an attacker-chosen path and the cleanup step's unlink then deletes that same traversed path. The fix introduces _safe_upload_filename, which normalizes both POSIX and Windows separators and reduces the input to its final basename (falling back to 'upload.bin' for empty, '.', or '..').

Know when Chatdev 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 (VulnCheck) PRIMARY 8.8 CRITICAL
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
vuln.today AI 9.1 CRITICAL

Unauthenticated single-request upload to a network endpoint gives AV:N/AC:L/PR:N/UI:N; arbitrary write/delete is I:H/A:H with no file read, so C:N.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Analysis Updated
Jun 30, 2026 - 17:43 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 17:41 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 17:22 NVD
CRITICAL HIGH
CVSS changed
Jun 30, 2026 - 17:22 NVD
9.1 (CRITICAL) 8.8 (HIGH)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OpenBMB ChatDev (versions through 2.2.0) contains a remote file manipulation vulnerability allowing unauthenticated attackers to write to and delete files on affected servers, creating direct risk to data integrity and system availability. Publicly available exploit code exists for this vulnerability. Organizations using ChatDev must upgrade immediately to prevent potential data loss and system compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
open-source research multi-agent LLM tool, limited production deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
7 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 Yes
EPSS 0.6%
Patch available Yes
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
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.

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

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