CVE-2024-8865: Composio core Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-66r2-xm28-74w9
CVSS 3.5
CWE-22
Published
Advisory Summary

CVE-2024-8865 is a MODERATE (CVSS 3.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Composio core libraries in the PyPI ecosystem. The issue involves composio path traversal vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2024-8865 at a Glance

CVE Identifier CVE-2024-8865
GHSA Identifier GHSA-66r2-xm28-74w9
Severity MODERATE
CVSS v3.1 Base Score 3.5
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Composio core
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.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:N/A:N).

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2024-8865

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-8865, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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 was found in composiohq composio up to 0.5.8 and classified as problematic. Affected by this issue is the function path of the file composio\server\api.py. The manipulation of the argument file leads to path traversal. 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-8865 Affected Composio core Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
composio-core
PyPI
≤ 0.5.8

References

Frequently Asked Questions

What is CVE-2024-8865?
CVE-2024-8865 is a security vulnerability in Composio core involving Composio Path Traversal vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
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-8865?
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-8865?
CVE-2024-8865 has a CVSS v3.1 base score of 3.5 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-8865?
CVE-2024-8865 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2024-8865?
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-66r2-xm28-74w9",
  "modified" : "2024-09-17T21:21:38Z",
  "published" : "2024-09-16T14:37:27Z",
  "aliases" : [ "CVE-2024-8865" ],
  "summary" : "Composio Path Traversal vulnerability",
  "details" : "A vulnerability was found in composiohq composio up to 0.5.8 and classified as problematic. Affected by this issue is the function path of the file composio\\server\\api.py. The manipulation of the argument file leads to path traversal. 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:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/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.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8865"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ComposioHQ/composio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ComposioHQ/composio/blob/v0.5.8/python/composio/server/api.py#L255"
  }, {
    "type" : "WEB",
    "url" : "https://rumbling-slice-eb0.notion.site/There-is-an-arbitrary-file-read-vulnerability-at-api-download-in-composiohq-composio-f0ec1ec26a5f434a97bb1ffde435a35b?pvs=4"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.277502"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.277502"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.403206"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-17T21:21:38Z",
    "nvd_published_at" : "2024-09-15T01:15:10Z"
  }
}