RCE in Agpt Autogpt Classic
CVE-2024-1881
AutoGPT, a component of significant-gravitas/autogpt, is vulnerable to an improper neutralization of special elements used in an OS command ('OS Command Injection') due to a flaw in its shell command validation function. Specifically, the vulnerability exists in versions v0.5.0 up to but not including 5.1.0. The issue arises from the application's method of validating shell commands against an allowlist or denylist, where it only checks the first word of the command. This allows an attacker to bypass the intended restrictions by crafting commands that are executed despite not being on the allowlist or by including malicious commands not present in the denylist. Successful exploitation of this vulnerability could allow an attacker to execute arbitrary shell commands.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.014 (70.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Agpt Autogpt_classic
- Significant-gravitas Significant-gravitas/autogpt — versions unspecified
Weakness classification (CWE)
References
- security@huntr.dev (Third Party Advisory)
- security@huntr.dev (Patch)
Frequently asked questions
- What is CVE-2024-1881?
- CVE-2024-1881 is a critical-severity vulnerability in Agpt Autogpt Classic, classified under OS Command Injection. CVSS score: 9.8/10. Published 2024-06-06.
- How severe is CVE-2024-1881?
- Critical severity. CVSS v3 base score is 9.8 out of 10.