Vulnerability · Published Sep 11, 2024 · Assigned by @huntr_ai

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

Critical 9.8

In plain English

A critical-severity OS command injection in significant-gravitas/autogpt from significant-gravitas. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities).

Severity (CVSS 3.0)9.8Critical
Exploit odds (30 days)0.8%top 42.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIagptno fix listedGHSA-g84q-54hf-36rg
PyPIagptno fix listedPYSEC-2026-257

Affected products (as reported)

VendorProductVersions
significant-gravitas significant-gravitas/autogpt unspecified – before 0.5.1

Weakness: CWE-78 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References