Arbitrary Code Injection Affecting github.com/mudler/localai/pkg/model package, versions <2.18.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMMUDLERLOCALAIPKGMODEL-8132068
  • published 29 Sep 2024
  • disclosed 27 Sep 2024
  • credit mvlttt

How to fix?

Upgrade github.com/mudler/LocalAI/pkg/model to version 2.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection due to an incomplete fix of CVE-2024-5181. This is because the backend's handling of input sources receives inputs not only from the configuration file but also from other inputs.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
8.7 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None