CVE-2024-8953CWE-627

Unsafe eval usage in composiohq/composio

High · published March 20, 2025

CVSS v3.0
7.2
EPSS
1%
Percentile
68.3
In the wild
Unconfirmed
What it is

⚡ A crafty use of eval() in composiohq/composio version 0.4.3 is the gateway for attackers looking to run arbitrary code on your server! Think of it like a kitchen where a chef starts cooking without checking the recipe—if they use a random ingredient from the shelf, who knows what dish might come out? This eval() function is that unpredictable chef, taking whatever input it gets without a safety check. An attacker could send malicious input to the mathematical_calculator endpoint and execute any code they desire. This could lead to catastrophic consequences, like data breaches, unauthorized access or even complete server takeover!

Put simply

Think of it like a kitchen where a chef starts cooking without checking the recipe—if they use a random ingredient from the shelf, who knows what dish might come out? This eval() function is that unpredictable chef, taking whatever input it gets without a safety check. The vulnerability arises because the eval() function is used to perform mathematical operations without sanitizing inputs, allowing attackers to inject and execute arbitrary code.

What to do

An attacker could send malicious input to the mathematical_calculator endpoint and execute any code they desire. This could lead to catastrophic consequences, like data breaches, unauthorized access or even complete server takeover! Immediately patch your composio version to 0.4.4 where this issue is resolved. Additionally, replace eval() with safer alternatives to handle mathematical expressions, such as a dedicated library for parsing math operations. Regularly audit your endpoints to ensure safe coding practices are followed. You've got this! With these steps, you can fortify your defenses and keep your systems secure. 🛡️

The record
Technical detail
CVSS v3.0
7.2 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01214 · 68.3th percentile
Weakness
CWE-627 · Dynamic Variable Evaluation
Published
2025-03-20T10:10Z
EPSS history
Timeline
  • 20 MAR 10:10Z
    Unsafe eval usage in composiohq/composio
    cvelistv5