Critical

AutoGPT bypass of the shell commands denylist settings

  • Disclosed: 11.09.2024
  • Updated: 11.10.2026 12:20

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) agpt <= 0.5.1 no fix

References

CVSS score 9.8/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-78
Platform
Python (PyPI)
Package
agpt
Disclosed
11.09.2024
Updated
11.10.2026 12:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-g84q-54hf-36rg - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-257 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: agpt

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
09.2024 01.2026
Without a fix
2
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 1

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 1
  1. High CVE-2026-24780 <= 0.2.2 no fix
  2. AutoGPT bypass of the shell commands denylist settings this entry
    Critical · 9.8 CVE-2024-6091 <= 0.5.1 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.