Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. agpt
  4. ›
  5. CVE-2024-6091

CVE-2024-6091: AutoGPT bypass of the shell commands denylist settings

September 11, 2024 (updated October 26, 2026)

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.

References

  • github.com/advisories/GHSA-g84q-54hf-36rg
  • github.com/pypa/advisory-database/tree/main/vulns/agpt/PYSEC-2026-257.yaml
  • github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed
  • huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050
  • nvd.nist.gov/vuln/detail/CVE-2024-6091
  • pypi.org/project/agpt

Code Behaviors & Features

Detect and mitigate CVE-2024-6091 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.5.1

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/agpt/CVE-2024-6091.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:25 +0000.