CVE-2024-8864: Composio core Composio Code Injection Vulnerability Vulnerability
MODERATECVE-2024-8864 is a MODERATE (CVSS 5.5) composio code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Composio core libraries in the PyPI ecosystem. The issue involves composio code injection vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-8864 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-8864
To remediate this vulnerability, upgrade all affected Composio core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install composio-core>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show composio-core
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-8864, inspect your installed packages using pip:
pip show composio-core
Analyze the terminal output to locate any version of Composio core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show composio-core command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Composio core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-8864 Affected Composio core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
composio-core
|
PyPI |
≤ 0.5.6
|
|
References
Frequently Asked Questions
What is CVE-2024-8864?
Which Composio core versions are affected?
What version fixes CVE-2024-8864?
Is composio-core affected?
What is the CVSS score of CVE-2024-8864?
What CWE is associated with CVE-2024-8864?
How can I check PyPI dependencies for CVE-2024-8864?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mrmh-3hqh-pfw7",
"modified" : "2024-09-17T21:21:46Z",
"published" : "2024-09-16T14:37:27Z",
"aliases" : [ "CVE-2024-8864" ],
"summary" : "Composio Code Injection Vulnerability",
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "composio-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.5.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8864"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ComposioHQ/composio"
}, {
"type" : "WEB",
"url" : "https://github.com/ComposioHQ/composio/blob/v0.5.6/python/composio/tools/local/mathematical/actions/calculator.py#L29"
}, {
"type" : "WEB",
"url" : "https://rumbling-slice-eb0.notion.site/Composio-s-Local-tools-Mathematical-has-a-code-injection-risk-in-composiohq-composio-ea0e89ee10fe4edfb9a8cfeed158c765?pvs=4"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.277501"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.277501"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.403204"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-17T21:21:45Z",
"nvd_published_at" : "2024-09-15T01:15:10Z"
}
}