CVE-2024-3135 Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai

Medium 6.5 Published Updated

Attackers can force victims to perform unauthorized resource-intensive actions on their LocalAI instance, leading to resource exhaustion and disk space consumption.

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-3135?

CVE-2024-3135 is a medium-severity vulnerability in mudler/localai, published on 1 Apr 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 exists in the mudler/localai application, allowing attackers to craft malicious webpages that, when visited by a victim, perform unauthorized actions on the victim's local LocalAI instance without their consent. This vulnerability enables attackers to exhaust system resources, consume credits, and fill disk space by making numerous resource-intensive API calls, such as generating images or uploading files. The vulnerability stems from the application's acceptance of simple request content-types without requiring CSRF tokens or implementing other CSRF mitigation measures. Successful exploitation does not require network access to the vulnerable LocalAI environment.

Weakness: CWE-352

Which versions are affected by CVE-2024-3135?

3 open source packages ship an affected version, including github.com/go-skynet/LocalAI. It affects 1 product.

PackageAffectedFixed in
github.com/go-skynet/LocalAI GoAll versionsNone
github.com/go-skynet/LocalAI GoAll versions to 2.7.0None
github.com/go-skynet/LocalAI GoAll versions to 2.7.0None

Products include Mudler Localai.

How do I fix CVE-2024-3135?

No fix has been published for CVE-2024-3135 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-3135 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3135 exists.

Sources

Also known as GHSA-jhvf-7c85-3c9g, GO-2024-2705.

Is CVE-2024-3135 in your software?

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

Check your SBOMs for free