CVE-2024-1879 CSRF to RCE in significant-gravitas/autogpt
Attackers can execute arbitrary commands on AutoGPT servers via CSRF due to missing API protections and permissive CORS settings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-1879?
CVE-2024-1879 is a high-severity vulnerability in significant-gravitas/autogpt, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A Cross-Site Request Forgery (CSRF) vulnerability in significant-gravitas/autogpt version v0.5.0 allows attackers to execute arbitrary commands on the AutoGPT server. The vulnerability stems from the lack of protections on the API endpoint receiving instructions, enabling an attacker to direct a user running AutoGPT in their local network to a malicious website. This site can then send crafted requests to the AutoGPT server, leading to command execution. The issue is exacerbated by CORS being enabled for arbitrary origins by default, allowing the attacker to read the response of all cross-site queries. This vulnerability was addressed in version 5.1.
Weakness: CWE-352
Which versions are affected by CVE-2024-1879?
It affects 1 product.
Products include Agpt Autogpt Classic.
How do I fix CVE-2024-1879?
No fix has been published for CVE-2024-1879 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-1879 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1879 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-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
- CVE-2024-1880 OS Command Injection in MacOS Text-To-Speech Class in significant-gravitas/autogpt
Sources
Also known as GHSA-wwg8-x274-5x5g.