# CVE-2024-6091: Shell Command Denylist Bypass in significant-gravitas/autogpt

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-11T12:49:07.293Z
- Modified: 2026-10-26T21:15:03.687Z
- Also known as: GHSA-g84q-54hf-36rg, PYSEC-2026-257
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- significant-gravitas significant-gravitas/autogpt: from unspecified before 0.5.1
- significant-gravitas autogpt: before 0.5.1
- agpt (PyPI): up to 0.5.1
- agpt autogpt_classic: 0.5.1

## Every score

- @huntr_ai: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: 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`

## References

- <https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050> (exploit, third-party-advisory, web)
- <https://github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed> (patch, 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> (package, web)
- <https://github.com/advisories/GHSA-g84q-54hf-36rg> (advisory)

## Sources

- CVE List: [CVE-2024-6091](https://www.cve.org/CVERecord?id=CVE-2024-6091), CVE Terms of Use, modified 2024-09-11
- GitHub Advisory Database: [GHSA-g84q-54hf-36rg](https://github.com/advisories/GHSA-g84q-54hf-36rg), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2024-6091](https://nvd.nist.gov/vuln/detail/CVE-2024-6091), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-257](https://osv.dev/vulnerability/PYSEC-2026-257), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-6091 · Whole record: https://cve.day/CVE-2024-6091.json · Rebuilt by cve.day 2026-11-25T22:58:45.299Z
