CVE-2024-1880 OS Command Injection in MacOS Text-To-Speech Class in significant-gravitas/autogpt
Attackers can execute arbitrary code on macOS systems running AutoGPT with text-to-speech enabled via OS command injection in the speech module.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-1880?
CVE-2024-1880 is a high-severity command injection vulnerability in significant-gravitas/autogpt, published on 6 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An OS command injection vulnerability exists in the MacOS Text-To-Speech class MacOSTTS of the significant-gravitas/autogpt project, affecting versions up to v0.5.0. The vulnerability arises from the improper neutralization of special elements used in an OS command within the `_speech` method of the MacOSTTS class. Specifically, the use of `os.system` to execute the `say` command with user-supplied text allows for arbitrary code execution if an attacker can inject shell commands. This issue is triggered when the AutoGPT instance is run with the `--speak` option enabled and configured with `TEXT_TO_SPEECH_PROVIDER=macos`, reflecting back a shell injection snippet. The impact of this vulnerability is the potential execution of arbitrary code on the instance running AutoGPT. The issue was addressed in version 5.1.0.
Weakness: CWE-78
Which versions are affected by CVE-2024-1880?
It affects 1 product.
Products include Agpt Autogpt Classic.
How do I fix CVE-2024-1880?
No fix has been published for CVE-2024-1880 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-1880 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1880 exists.
Other vulnerabilities in significant-gravitas/autogpt
- CVE-2024-6091 Shell Command Denylist Bypass in significant-gravitas/autogpt
- CVE-2024-8156 Command Injection in significant-gravitas/autogpt
- CVE-2024-1879 CSRF to RCE in significant-gravitas/autogpt
- CVE-2024-1881 Improper Neutralization of Special Elements used in an OS Command in significant-gravitas/autogpt
- CVE-2023-37273 Docker escape in Auto-GPT when running from docker-compose.yml included in git repo
Sources
Also known as GHSA-rf3r-wjj9-3842.