Code Injection Affecting composio-core package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.16% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-COMPOSIOCORE-7981553
  • published 15 Sep 2024
  • disclosed 15 Sep 2024
  • credit Aftersnows

How to fix?

Upgrade composio-core to version or higher.

Overview

composio-core is a Core package to act as a bridge between composio platform and other services.

Affected versions of this package are vulnerable to Code Injection in the Calculator class, which passes arbitrary input to the eval() function.

PoC

task = "Calculate  __import__('os').system('touch ./hack.txt')"
agent_executor.invoke({"input": task})

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High