Browse / Improper Output Handling / CVE-2024-8864
Composio Code Injection Vulnerability
- Class
- Improper Output Handling (filed by a model that read the advisory)
- Technique
- Code and command execution
- Also involves
- MCP and Tool Server Flaws
- Affected
- composio-core (PyPI)
- CVSS
- CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- EPSS
- 0.8% chance of exploitation in 30 days
How it works, in short
The Calculator tool passes model-supplied expressions into code evaluation, so text the model produces can execute arbitrary code. (Our summary, written by a model. The source text is below.)
Details
A vulnerability has been found in composiohq composio up to 0.5.6 and classified as critical. Affected by this vulnerability is the function Calculator of the file python/composio/tools/local/mathematical/actions/calculator.py. The manipulation leads to code injection. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8864
- https://github.com/ComposioHQ/composio
- https://github.com/ComposioHQ/composio/blob/v0.5.6/python/composio/tools/local/mathematical/actions/calculator.py#L29
- https://rumbling-slice-eb0.notion.site/Composio-s-Local-tools-Mathematical-has-a-code-injection-risk-in-composiohq-composio-ea0e89ee10fe4edfb9a8cfeed158c765?pvs=4
- https://vuldb.com/?ctiid.277501
- https://vuldb.com/?id.277501
- https://vuldb.com/?submit.403204
Source: GitHub Advisory Database, used under CC BY 4.0.