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. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMMUDLERLOCALAIPKGMODEL-8132068
  • published29 Sept 2024
  • disclosed27 Sept 2024
  • creditmvlttt

Introduced: 27 Sep 2024

CVE-2024-6983  (opens in a new tab)
CWE-94  (opens in a new tab)

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