Skip to content
MediumVulnerability

CVE-2024-6095: LocalAI SSRF and file inclusion through /models/apply endpoint

Identifier
CVE-2024-6095
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-6095 affects the /models/apply endpoint of mudler/localai versions 2.15.0. The endpoint accepts both http(s):// and file:// schemes, enabling Server-Side Request Forgery and partial Local File Inclusion. An attacker with network access to the LocalAI instance can reach internal HTTP(s) servers and partially read local files, though output is limited by error message length.

Mitigation

The issue is fixed in version 2.17.