AutoGPT bypass of the shell commands denylist settings
Critical severity
GitHub Reviewed
Published
Sep 11, 2024
to the GitHub Advisory Database
•
Updated Sep 18, 2024
Description
Published by the National Vulnerability Database
Sep 11, 2024
Published to the GitHub Advisory Database
Sep 11, 2024
Reviewed
Sep 18, 2024
Last updated
Sep 18, 2024
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.References