Skip to content

CVE-2024-6091 Shell Command Denylist Bypass in significant-gravitas/autogpt

CriticalCVSS 9.8 EPSS 0.82%
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

4 packages: 3 fixed.

PackageAffectedFixed inStatus
pypi agpt(PyPI) <= 0.5.1; = 0.2.2 after 0.5.1 Fixed
Significant-Gravitas AutoGPT < 0.5.1 0.5.1 Fixed
significant-gravitas/autogpt < 0.5.1 0.5.1 Fixed
agpt autogpt classic = 0.5.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi agpt(PyPI) <= 0.5.1 No fix listed
pypi agpt(PyPI) = 0.2.2 No fix listed
significant-gravitas/autogpt < 0.5.1 0.5.1
Significant-Gravitas AutoGPT < 0.5.1 0.5.1
agpt autogpt classic = 0.5.1 No fix listed

References