Skip to content
Heist/ feed
Back to feed
Critical

AutoGPT bypass of the shell commands denylist settings

Type: advisorySources: OSV

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.

Products
agpt
Affected versions
0.2.2
Fixed versions
Not specified
CVEs
CVE-2024-6091
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 16:51 UTC · Revision 1

Source evidence

AutoGPT bypass of the shell commands denylist settings

core-osv · Original source

Published 11 Sept 2024, 15:31 UTC

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.

osv:GHSA-g84q-54hf-36rg

agpt

Fixed versions: Not specified

Complete source record
{
  "id": "1d296b0d9835a57d8da1050c5ae49d121aae42e838945844f8f4e70535dbf98c",
  "url": "https://osv.dev/vulnerability/GHSA-g84q-54hf-36rg",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "AutoGPT bypass of the shell commands denylist settings",
    "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.",
    "evidence": "osv:GHSA-g84q-54hf-36rg",
    "products": [
      {
        "name": {
          "value": "agpt",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.2.2",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "GHSA-g84q-54hf-36rg",
      "aliases": [
        "CVE-2024-6091",
        "GHSA-g84q-54hf-36rg",
        "PYSEC-2026-257"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0.5.1"
                }
              ]
            }
          ],
          "package": {
            "name": "agpt",
            "purl": "pkg:pypi/agpt",
            "ecosystem": "PyPI"
          },
          "versions": [
            "0.2.2"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/09/GHSA-g84q-54hf-36rg/GHSA-g84q-54hf-36rg.json"
          }
        }
      ],
      "modified": "2026-10-26T21:15:03.687137353Z",
      "provider": "osv",
      "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"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "severity": "CRITICAL",
        "github_reviewed": true,
        "nvd_published_at": "2024-09-11T13:15:03Z",
        "github_reviewed_at": "2024-09-18T22:11:39Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-6091",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 458979,
  "published_at": "2024-09-11T15:31:12+00:00"
}