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).
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | agpt | no fix listed | GHSA-g84q-54hf-36rg |
| PyPI | agpt | no fix listed | PYSEC-2026-257 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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