CVE-2024-8864: Composio core Composio Code Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-mrmh-3hqh-pfw7
CVSS 5.5
CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-8864
GHSA Identifier GHSA-mrmh-3hqh-pfw7
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Composio core
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

composio-core fixed: Latest secure release
pip install composio-core>=Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2024-8864 is a security vulnerability in Composio core involving Composio Code Injection Vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Composio core versions are affected?
Affected versions include releases prior to current release patches across affected packages: composio-core.
What version fixes CVE-2024-8864?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is composio-core affected?
Yes, composio-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-8864?
CVE-2024-8864 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-8864?
CVE-2024-8864 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check PyPI dependencies for CVE-2024-8864?
Run the dependency tree command: 'pip show composio-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}