CVE-2024-6091
CRITICAL 9.8CVSS 3.1AutoGPT 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.
- Published
- 11 Sep 2024
- Last modified
- 26 Oct 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-g84q-54hf-36rgPYSEC-2026-257
- Sources
- NVDJSONOSV GHSA-g84q-54hf-36rgJSONOSV PYSEC-2026-257JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | agpt | autogpt_classiccpe:2.3:a:agpt:autogpt_classic:0.5.1:*:*:*:*:*:*:* |
= 0.5.1 | |
| OSV | PyPI | agpt | <= 0.5.1 |
References
- https://github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed · Patch, WEB
- https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-6091 · ADVISORY
- https://github.com/Significant-Gravitas/AutoGPT · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/agpt/PYSEC-2026-257.yaml · WEB
- https://pypi.org/project/agpt · WEB, PACKAGE
- https://github.com/advisories/GHSA-g84q-54hf-36rg · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 11 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Sep 2024)