{"id":"GHSA-g84q-54hf-36rg","aliases":["CVE-2024-6091","PYSEC-2026-257"],"title":"AutoGPT bypass of the shell commands denylist settings","description":"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.","severity":"critical","score":9.8,"published":"2024-09-11T15:31:12.000Z","modified":"2026-10-26T21:15:03.687Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"agpt","ranges":[{"events":[{"introduced":"0"},{"last_affected":"0.5.1"}],"type":"ECOSYSTEM"}],"versions":["0.2.2"],"fixed":[]}],"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://github.com/pypa/advisory-database/tree/main/vulns/agpt/PYSEC-2026-257.yaml","https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050","https://pypi.org/project/agpt"],"sources":[{"name":"OSV","id":"GHSA-g84q-54hf-36rg","modified":"2026-10-26T21:15:03.687137353Z","url":"https://osv.dev/vulnerability/GHSA-g84q-54hf-36rg"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},{"source":"OSV","vector":"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","score":9.3}]}