CVE-2024-6091CWE-78

Shell Command Denylist Bypass in significant-gravitas/autogpt

Critical · published September 11, 2024

CVSS v3.0
9.8
EPSS
1%
Percentile
56.7
In the wild
Unconfirmed
What it is

🚨 An attacker can slip right past shell command restrictions with a cleverly disguised path! This CVE in autogpt version 0.5.1 lets users bypass denylist settings, opening the door to mischief. 🔥 Imagine a restaurant that bans certain ingredients like garlic and onions. If a chef manages to sneak in garlic powder labeled as 'garlic-flavored seasoning', they could serve dishes with forbidden flavors without anyone noticing. That's what this vulnerability allows – commands get executed without the denylist even batting an eye! The consequences could be absolutely devastating! An attacker could execute any command that’s supposed to be blocked, potentially gaining sensitive system information or taking control of the environment. In short, it’s a direct line into the server’s operations, leading to data breaches or system manipulation.

Put simply

Imagine a restaurant that bans certain ingredients like garlic and onions. If a chef manages to sneak in garlic powder labeled as 'garlic-flavored seasoning', they could serve dishes with forbidden flavors without anyone noticing. That's what this vulnerability allows – commands get executed without the denylist even batting an eye! This vulnerability occurs because the denylist's checks fail to account for modified paths, allowing attackers to run blocked commands by injecting specific path elements like '/bin/./'. This oversight creates a loophole that malicious users can exploit easily.

What to do

The consequences could be absolutely devastating! An attacker could execute any command that’s supposed to be blocked, potentially gaining sensitive system information or taking control of the environment. In short, it’s a direct line into the server’s operations, leading to data breaches or system manipulation. To secure your system, upgrade autogpt to version 0.5.2 or later immediately. Additionally, review and strengthen your denylist configurations, ensuring that they comprehensively cover variations of command executions. Conduct a thorough audit of system commands regularly! You've got this! With these steps, you’ll lock down your environment and keep those sneaky attackers out! 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00819 · 56.7th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2024-09-11T12:49Z
EPSS history
Timeline
  • 11 SEP 12:49Z
    Shell Command Denylist Bypass in significant-gravitas/autogpt
    cvelistv5