CVE-2024-1879 CSRF to RCE in significant-gravitas/autogpt

High 8.8 Published Updated

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.

Sources

Also known as GHSA-wwg8-x274-5x5g.

Is CVE-2024-1879 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free