CVE-2024-6091: Shell Command Denylist Bypass in significant-gravitas/autogpt
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.
Other sources
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.
— GitHub
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-6091?
CVE-2024-6091 has a severity rating that indicates it can allow attackers to bypass critical denylist protections.
How do I fix CVE-2024-6091?
To fix CVE-2024-6091, update the significant-gravitas/autogpt package to version 0.5.2 or later.
What types of attacks can occur due to CVE-2024-6091?
Due to CVE-2024-6091, attackers can execute prohibited shell commands that are meant to be blocked by denylist settings.
Which software versions are affected by CVE-2024-6091?
CVE-2024-6091 affects significant-gravitas/autogpt version 0.5.1 and earlier.
Is CVE-2024-6091 a remote or local vulnerability?
CVE-2024-6091 is primarily a local vulnerability that requires attacker access to the system where autogpt is running.