CVE-2024-21552 Code injection in SuperAGI

Critical 9.8 Published Updated

Attackers can achieve arbitrary code execution on the SuperAGI server by manipulating LLM output to exploit unsafe eval usage.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-21552?

CVE-2024-21552 is a critical code injection vulnerability in SuperAGI, published on 22 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of `SuperAGI` are vulnerable to Arbitrary Code Execution due to unsafe use of the ‘eval’ function. An attacker could induce the LLM output to exploit this vulnerability and gain arbitrary code execution on the SuperAGI application server.

Weakness: CWE-94

Which versions are affected by CVE-2024-21552?

How do I fix CVE-2024-21552?

No fix has been published for CVE-2024-21552 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-21552 being exploited?

There is no known exploitation of CVE-2024-21552 in the wild and no public exploit code.

Sources

Also known as GHSA-8582-mjhv-rmrr.

Is CVE-2024-21552 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free