critical9.8
CVE-2024-6091
A vulnerability in significant-gravitas/autogpt version 0.5.1 allows an attacker to bypass the shell commands denylist settings.
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | agpt | <= 0.5.1 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Agpt | Autogpt Classic | Version 0.5.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-g84q-54hf-36rg
- https://nvd.nist.gov/vuln/detail/CVE-2024-6091
- https://github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed
- https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050
- https://github.com/pypa/advisory-database/tree/main/vulns/agpt/PYSEC-2026-257.yaml
- https://pypi.org/project/agpt