CVE-2026-58166: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in OpenBMB ChatDev
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.
AI Analysis
Technical Summary
CVE-2026-58166 is a path traversal vulnerability in OpenBMB ChatDev (<=2.2.0) that permits unauthenticated remote attackers to write or delete arbitrary files on the server filesystem. The vulnerability occurs in the file upload endpoint where the application constructs the destination path from a multipart filename without sanitization, allowing attackers to use path traversal sequences or absolute paths. This enables manipulation of files outside the restricted directory, potentially impacting system integrity and availability. The issue is resolved in a later commit (4fd4da6).
Potential Impact
Exploitation of this vulnerability can lead to arbitrary file write and deletion on the server hosting OpenBMB ChatDev, potentially allowing attackers to modify or remove critical files. This can result in denial of service or further compromise of the server environment. The vulnerability requires no authentication and has a low attack complexity, making it highly dangerous.
Mitigation Recommendations
A fix for this vulnerability is available and was introduced in commit 4fd4da6. Users should upgrade OpenBMB ChatDev to a version that includes this fix. Until patched, restrict access to the file upload endpoint and monitor for suspicious activity related to file uploads. Patch status is not explicitly confirmed in a vendor advisory; therefore, verify the fix by applying the commit or an official update from the vendor.
CVE-2026-58166: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in OpenBMB ChatDev
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.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58166 is a path traversal vulnerability in OpenBMB ChatDev (<=2.2.0) that permits unauthenticated remote attackers to write or delete arbitrary files on the server filesystem. The vulnerability occurs in the file upload endpoint where the application constructs the destination path from a multipart filename without sanitization, allowing attackers to use path traversal sequences or absolute paths. This enables manipulation of files outside the restricted directory, potentially impacting system integrity and availability. The issue is resolved in a later commit (4fd4da6).
Potential Impact
Exploitation of this vulnerability can lead to arbitrary file write and deletion on the server hosting OpenBMB ChatDev, potentially allowing attackers to modify or remove critical files. This can result in denial of service or further compromise of the server environment. The vulnerability requires no authentication and has a low attack complexity, making it highly dangerous.
Mitigation Recommendations
A fix for this vulnerability is available and was introduced in commit 4fd4da6. Users should upgrade OpenBMB ChatDev to a version that includes this fix. Until patched, restrict access to the file upload endpoint and monitor for suspicious activity related to file uploads. Patch status is not explicitly confirmed in a vendor advisory; therefore, verify the fix by applying the commit or an official update from the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-29T16:03:38.521Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a43f42f27e9c79719185edc
Added to database: 06/30/2026, 16:51:59 UTC
Last enriched: 06/30/2026, 17:06:58 UTC
Last updated: 07/01/2026, 02:05:21 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.