# CVE-2024-21552: All versions of SuperAGI are vulnerable to Arbitrary Code Execution due to unsafe use of the ‘eval’ function.

- Severity: Critical 9.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-07-22T14:18:30.939Z
- Modified: 2026-06-17T07:09:43.633Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- SuperAGI: before *
- superagi superagi: before *

## References

- <https://github.com/TransformerOptimus/SuperAGI/blob/9361f0491716e56bd0c0ae2f3b49da201a18c58c/superagi/agent/output_handler.py#L149>
- <https://github.com/TransformerOptimus/SuperAGI/blob/9361f0491716e56bd0c0ae2f3b49da201a18c58c/superagi/agent/output_handler.py#L180>

## Sources

- CVE List: [CVE-2024-21552](https://www.cve.org/CVERecord?id=CVE-2024-21552), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-21552](https://nvd.nist.gov/vuln/detail/CVE-2024-21552), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21552 · Whole record: https://cve.day/CVE-2024-21552.json · Rebuilt by cve.day 2026-11-25T22:58:43.145Z
