Vulnerabilities · 2024 · Agpt
CVE-2024-6091
Agpt Autogpt Classic vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Autogpt Classic. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Agpt Autogpt Classic runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed · Patch
- huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-6091
- github.com/advisories/GHSA-g84q-54hf-36rg
- github.com/pypa/advisory-database/tree/main/vulns/agpt/PYSEC-2026-257.yaml
- pypi.org/project/agpt
- nvd.nist.gov/vuln/detail/CVE-2024-6091
- cve.org/CVERecord?id=CVE-2024-6091
More vulnerabilities in Agpt products
CVE-2025-53944CVE-2025-31494CVE-2025-31491CVE-2025-31490CVE-2025-22603CVE-2025-1040CVE-2025-0454CVE-2024-8156All 15
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.