CVE-2024-1881: Improper Neutralization of Special Elements used in an OS Command in significant-gravitas/autogpt
AutoGPT, a component of significant-gravitas/autogpt, is vulnerable to an improper neutralization of special elements used in an OS command ('OS Command Injection') due to a flaw in its shell command validation function. Specifically, the vulnerability exists in versions v0.5.0 up to but not including 5.1.0. The issue arises from the application's method of validating shell commands against an allowlist or denylist, where it only checks the first word of the command. This allows an attacker to bypass the intended restrictions by crafting commands that are executed despite not being on the allowlist or by including malicious commands not present in the denylist. Successful exploitation of this vulnerability could allow an attacker to execute arbitrary shell commands.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-1881?
CVE-2024-1881 is categorized as a high severity vulnerability due to its potential for OS command injection.
How do I fix CVE-2024-1881?
To mitigate CVE-2024-1881, upgrade AutoGPT to a version higher than 0.5.1 where the shell command validation issue has been addressed.
What specific software versions are affected by CVE-2024-1881?
CVE-2024-1881 affects AutoGPT versions from 0.5.0 up to but not including 0.5.1.
What kind of attack is possible via CVE-2024-1881?
CVE-2024-1881 allows for OS Command Injection, which can enable attackers to execute arbitrary commands on the host system.
Is CVE-2024-1881 exploitable remotely?
Yes, CVE-2024-1881 can be exploited remotely, increasing the risk for systems utilizing the vulnerable software.