Shell Command Denylist Bypass in significant-gravitas/autogpt
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
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-6091
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:45 UTC · Revision 1
Source evidence
Shell Command Denylist Bypass in significant-gravitas/autogpt
core-osv · Original sourcePublished 11 Sept 2024, 12:49 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:CVE-2024-6091
Complete source record
{
"id": "20d603420beca8d1719a706fe5208698edd786283481052c24f06f4ec543a7e5",
"url": "https://osv.dev/vulnerability/CVE-2024-6091",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Shell Command Denylist Bypass in significant-gravitas/autogpt",
"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:CVE-2024-6091",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2024-6091",
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/significant-gravitas/autogpt",
"type": "GIT",
"events": [
{
"introduced": "26324f29849967fa72c207da929af612f1740669"
},
{
"fixed": "ef691359b774a1f9f80cf4f5ace9821967b718ed"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:agpt:autogpt_classic:0.5.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.5.1"
},
{
"last_affected": "0.5.1"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "ef691359b774a1f9f80cf4f5ace9821967b718ed"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.5.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6091.json"
}
}
],
"modified": "2026-10-28T02:30:30.788138514Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/8a742c13-bb5e-4bc9-8b86-049d8a386050",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6091.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-6091",
"https://github.com/significant-gravitas/autogpt/commit/ef691359b774a1f9f80cf4f5ace9821967b718ed"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6091.json"
}
},
"related_cves": [
{
"value": "CVE-2024-6091",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497533,
"published_at": "2024-09-11T12:49:07.293+00:00"
}