CVE-2024-8865: Composio Path Traversal vulnerability
3.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.59051%
CWE
Published
9/16/2024
Updated
9/17/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
composio-core | pip | <= 0.5.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability disclosure explicitly references the 'path' function in composio/server/api.py handling the 'file' argument. Analysis of the linked code shows the '_download_file_or_dir' endpoint (line 255) takes a 'file' parameter and uses it to construct Path() objects without validation. There is no check for directory traversal sequences or path normalization, enabling attackers to access arbitrary files by submitting paths like '../../etc/passwd'. The combination of direct user input usage in filesystem operations and lack of sanitization matches classic path traversal patterns.