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.
{
"cna_assigner": "@huntr_ai",
"cwe_ids": [
"CWE-78"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6091.json"
}{
"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"
}
]
}