Vulnerabilities in pkg:pypi/composio-core

PACKAGE
Advisory Identifier: GHSA-5xg7-5662-8x7j
Advisory Summary

CVE-2024-8953 is a HIGH (CVSS 7.2) composio eval injection vulnerability vulnerability (CWE-627: Dynamic Variable Evaluation) affecting Composio core libraries in the PyPI ecosystem. The issue involves composio eval injection vulnerability. Remediation is available by upgrading affected packages to version 0.5.43.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/composio-core

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/composio-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5xg7-5662-8x7j CVE-2024-8953 HIGH Composio Eval Injection Vulnerability
GHSA-38mg-wm59-g64x CVE-2024-8955 MODERATE composio allows Server-Side Request Forgery (SSRF) in BROWSERTOOL
GHSA-qvg9-vp87-h3hr CVE-2024-8952 MODERATE composio Server-Side Request Forgery (SSRF) vulnerability
GHSA-mrmh-3hqh-pfw7 CVE-2024-8864 MODERATE Composio Code Injection Vulnerability
GHSA-66r2-xm28-74w9 CVE-2024-8865 MODERATE Composio Path Traversal vulnerability

CVE-2024-8953 at a Glance

CVE Identifier CVE-2024-8953
GHSA Identifier GHSA-5xg7-5662-8x7j
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-627: Dynamic Variable Evaluation
Affected Product Composio core
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-8953

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: 0.5.43
pip install composio-core>=0.5.43
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-8953, 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 0.5.43), 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-627: Dynamic Variable Evaluation, where in a language where the user can influence the name of a variable at runtime, if the variable names are not controlled, an attacker can read or write to arbitrary variables, or access arbitrary functions. 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

In composiohq/composio version 0.4.3, the mathematical_calculator endpoint uses the unsafe eval() function to perform mathematical operations. This can lead to arbitrary code execution if untrusted input is passed to the eval() function.

CVE-2024-8953 Affected Composio core Versions

1 component(s)
Fixed Versions:
0.5.43
Product / Package Ecosystem Affected Versions Fixed Version
composio-core
PyPI
< 0.5.43
0.5.43

References

Frequently Asked Questions

What is CVE-2024-8953?
CVE-2024-8953 is a security vulnerability in Composio core involving Composio Eval Injection Vulnerability under CWE-627: Dynamic Variable Evaluation.
Which Composio core versions are affected?
Affected versions include releases prior to 0.5.43 across affected packages: composio-core.
What version fixes CVE-2024-8953?
Upgrading to 0.5.43 (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 0.5.43. Upgrade your dependency to 0.5.43 or later.
What is the CVSS score of CVE-2024-8953?
CVE-2024-8953 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-8953?
CVE-2024-8953 is classified under CWE-627: Dynamic Variable Evaluation (In a language where the user can influence the name of a variable at runtime, if the variable names are not controlled, an attacker can read or write to arbitrary variables, or access arbitrary functions.).
How can I check PyPI dependencies for CVE-2024-8953?
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-5xg7-5662-8x7j",
  "modified" : "2025-03-22T00:19:04Z",
  "published" : "2025-03-20T12:32:49Z",
  "aliases" : [ "CVE-2024-8953" ],
  "summary" : "Composio Eval Injection Vulnerability",
  "details" : "In composiohq/composio version 0.4.3, the mathematical_calculator endpoint uses the unsafe eval() function to perform mathematical operations. This can lead to arbitrary code execution if untrusted input is passed to the eval() function.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "composio-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.43"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8953"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ComposioHQ/composio/commit/ed82fb45dc9fbd7f07c535c72bada871c158ae5f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ComposioHQ/composio-js"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ComposioHQ/composio/blob/b932d99e67f0fe95f8a0a24be9352e3f99059bc3/python/composio/tools/local/mathematical/actions/calculator.py#L37"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/8203d721-e05f-4500-a5bc-c0bec980420c"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-627" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-22T00:19:04Z",
    "nvd_published_at" : "2025-03-20T10:15:44Z"
  }
}