Description
Composio SDK before 0.2.32-beta.283 contains a path validation bypass vulnerability that allows attackers to read and exfiltrate sensitive files by exploiting a missing assertSafeFileUploadPath check in the readFileFromDisk function within tool-file-uploads.ts. Attackers can exploit prompt injection to manipulate file_uploadable parameters to reference sensitive paths such as SSH private keys, causing the CLI to upload credential files to attacker-controlled storage.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ComposioHQ | composio | < 0.2.32-beta.283 | 0.2.32-beta.283 |
References
- Researcher Disclosure technical-description exploit issue-tracking
- composio @composio/cli@0.2.32-beta.283 Release Notes release-notes
- Fix PR issue-tracking patch
- Fix Commit patch
- https://www.vulncheck.com/advisories/composio-sdk-beta-283-sensitive-file-upload-via-tool-file-uploads-ts third-party-advisory