AutoGPT bypass of the shell commands denylist settings
Date: 2024-09
Affected: pip/agpt
Attack vector: command-injection
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2024-6091
CWE: CWE-78
CVSS: 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

A vulnerability in significant-gravitas/autogpt version 0.5.1 allows an attacker to bypass the shell commands denylist settings. The issue arises when the denylist is configured to block specific commands, such as `whoami` and `/bin/whoami`. An attacker can circumvent this restriction by executing commands with a modified path, such as `/bin/./whoami`, which is not recognized by the denylist.


Mitigations:

Architectural layers (MAESTRO):