AutoGPT bypass of the shell commands denylist settings
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | agpt | <= 0.5.1 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6091
- https://github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed
- https://github.com/Significant-Gravitas/AutoGPT
- https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050
- https://pypi.org/project/agpt
- https://github.com/advisories/GHSA-g84q-54hf-36rg
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-78- Platform
- Python (PyPI)
- Package
agpt- Disclosed
- 11.09.2024
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g84q-54hf-36rg - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-257 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: agpt
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 09.2024 01.2026
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 1
Disclosures per year
- 2024: 1
- 2025: 0
- 2026: 1
-
AutoGPT bypass of the shell commands denylist settings this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.