Skip to content
RCE Disclosed report Intermediate CVE-2024-8953

Composio Eval Injection Vulnerability

The mathematical_calculator endpoint in Composio version 0.4.3 uses the unsafe eval() function to evaluate mathematical expressions. An attacker could pass untrusted input to achieve arbitrary code execution.

ComposioHQ/composio

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-5xg7-5662-8x7j, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The endpoint uses eval() on untrusted input instead of a safe mathematical parser.

Impact

An attacker could execute arbitrary code on the server.

What the attacker needed

Access to the mathematical_calculator endpoint

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The software takes user input and runs it as code using a built-in function called eval(), which is dangerous because it can execute any code, not just maths. An attacker could send malicious input to run their own commands on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from ComposioHQ/composio

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.