Live threats

All CVEs / Mudler

CVE-2024-5182Mudler Localai

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Jun 20, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

What happens

A path traversal vulnerability exists in mudler/localai version 2.14.0, where an attacker can exploit the `model` parameter during the model deletion process to delete arbitrary files. Specifically, by crafting a request with a manipulated `model` parameter, an attacker can traverse the directory structure and target files outside of the intended directory, leading to the deletion of sensitive data. This vulnerability is due to insufficient input validation and sanitization of the `model` parameter.

Original NVD text.

What to do

  1. Apply the vendor's security update for Localai.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-skynet/LocalAI < 2.16.0 2.16.0 go get github.com/go-skynet/LocalAI@v2.16.0
Go github.com/go-skynet/LocalAI all no fixed version —

Per OSV / GitHub Advisories (GHSA-cpcx-r2gq-x893, GO-2024-2938). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mudlerlocalai< 2.16.0

Official sources

References

Links published by the sources. Open them with care.