CVE-2024-21552CWE-94

All versions of `SuperAGI` are vulnerable to Arbitrary Code Execution due to unsafe use of the ‘eval’ function

Critical · published July 22, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
49.6
In the wild
Unconfirmed
What it is

🚨 An unsafe use of ‘eval’ in `SuperAGI` opens a gaping hole for arbitrary code execution! This means attackers could run any code they want on your server! 🔥 Think of ‘eval’ as a restaurant that cooks whatever the customers order without checking the ingredients first. If a malicious chef sends in a dangerous recipe, the entire kitchen is at risk! 🍽️ An attacker could exploit this vulnerability to gain full control over your application server, potentially stealing sensitive data, altering configurations, or deploying malicious software. This could lead to a catastrophic breach, putting your entire system and user trust at severe risk! 😱

Put simply

Think of ‘eval’ as a restaurant that cooks whatever the customers order without checking the ingredients first. If a malicious chef sends in a dangerous recipe, the entire kitchen is at risk! 🍽️ This vulnerability arises from the arbitrary execution of code due to how `SuperAGI` handles the ‘eval’ function. When untrusted output is processed, it allows an attacker to inject malicious code that gets executed on the server.

What to do

An attacker could exploit this vulnerability to gain full control over your application server, potentially stealing sensitive data, altering configurations, or deploying malicious software. This could lead to a catastrophic breach, putting your entire system and user trust at severe risk! 😱 To protect yourself, immediately update `SuperAGI` to the latest version that addresses this flaw. Additionally, replace the use of ‘eval’ with safer alternatives and carefully validate any input before processing it. 🛡️ You've got this! By taking these steps, you can secure your server and keep those attackers at bay! 💪✨

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00631 · 49.6th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-07-22T14:18Z
EPSS history
Timeline
  • 22 JUL 14:18Z
    All versions of `SuperAGI` are vulnerable to Arbitrary Code Execution due to unsafe use of the ‘eval’ function
    cvelistv5