GitHub Advisoryadvisory · PyPI

GHSA-g84q-54hf-36rg AutoGPT bypass of the shell commands denylist settings

CRITICAL Published 2024-09-11 Modified 2026-10-26 Official page ↗
Aliases
CVE-2024-6091
Ecosystem
PyPI
Packages
agpt
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78
Reviewed
2024-09-18

Affected packages

• PyPI agpt: <= 0.5.1 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2024-6091 A vulnerability in significant-gravitas/autogpt version 0.5.1 allows an attacker to bypass the shell commands denylist settings. vulnerability

Weakness · CWE (1)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References