Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-skynet/LocalAI
  4. ›
  5. CVE-2024-5182

CVE-2024-5182: LocalAI path traversal vulnerability

June 20, 2024

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.

References

  • github.com/advisories/GHSA-cpcx-r2gq-x893
  • github.com/mudler/LocalAI
  • github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e
  • huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545
  • nvd.nist.gov/vuln/detail/CVE-2024-5182

Code Behaviors & Features

Detect and mitigate CVE-2024-5182 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.16.0

Fixed versions

  • 2.16.0

Solution

Upgrade to version 2.16.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/go-skynet/LocalAI/CVE-2024-5182.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.