{"id":"CVE-2024-6091","aliases":["CVE-2024-6091","GHSA-g84q-54hf-36rg","PYSEC-2026-257"],"related":[],"kind":"vulnerability","state":"published","title":"Shell Command Denylist Bypass in significant-gravitas/autogpt","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad en la versión 0.5.1 de significant-gravitas/autogpt permite a un atacante eludir la configuración de la lista de denegación de comandos del shell. El problema surge cuando la lista de denegación está configurada para bloquear comandos específicos, como \"whoami\" y \"/bin/whoami\". Un atacante puede eludir esta restricción ejecutando comandos con una ruta modificada, como \"/bin/./whoami\", que no es reconocida por la lista de denegación.","source":"nvd"}],"published":"2024-09-11T12:49:07.293Z","modified":"2026-10-26T21:15:03.687Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.5.1","status":"affected"}],"vendor":"significant-gravitas","product":"significant-gravitas/autogpt","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.5.1","status":"affected"}],"vendor":"significant-gravitas","product":"autogpt","cpe":"cpe:2.3:a:significant-gravitas:autogpt:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.5.1"}],"ecosystem":"PyPI","package":"agpt","purl":"pkg:pypi/agpt","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.5.1"}],"vendor":"agpt","product":"autogpt_classic","cpe":"cpe:2.3:a:agpt:autogpt_classic:0.5.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.5.1"}],"ecosystem":"PyPI","package":"agpt","purl":"pkg:pypi/agpt","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6091","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Significant-Gravitas/AutoGPT","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/agpt/PYSEC-2026-257.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/agpt","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-g84q-54hf-36rg","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-09-11T18:22:48.647Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6091","url":"https://www.cve.org/CVERecord?id=CVE-2024-6091","licence":"CVE Terms of Use","modified":"2024-09-11T18:23:23.728Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g84q-54hf-36rg","url":"https://github.com/advisories/GHSA-g84q-54hf-36rg","licence":"CC-BY-4.0","modified":"2026-10-26T21:15:03.687Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6091","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6091","licence":"Public domain","modified":"2026-06-17T08:17:16.240Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-257","url":"https://osv.dev/vulnerability/PYSEC-2026-257","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:47.654Z"}],"updatedAt":"2026-11-25T22:58:45.299Z","epss":{"score":0.00812,"percentile":0.58162,"date":"2026-12-02T12:00:21.000Z"}}