# CVE-2024-5182: GO-2024-2938 - LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI

Source: https://junglewise.ai/threats/cve-2024-5182-localai-path-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-06-28  
License: CC BY 4.0 with a link back

CVE-2024-5182 · Severity: low · CVSS 3 · Published 2024-06-28

LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI

Technologies: [github.com/go-skynet/LocalAI (Go)](https://junglewise.ai/threats/technologies/github-com-go-skynet-localai). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2024-5182 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-5182 being exploited in the wild.

**How severe is CVE-2024-5182?** Low severity, with a CVSS score of 3, published 28 June 2024.

**Which products and versions are affected?** github.com/go-skynet/LocalAI (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.16.0.

**Is there a fix for CVE-2024-5182?** Yes. github.com/go-skynet/LocalAI (Go): upgrade to 2.16.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-5182?** Check whether you run github.com/go-skynet/LocalAI (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/go-skynet/LocalAI (Go): upgrade to 2.16.0 or later

  ```sh
  go get github.com/go-skynet/LocalAI@v2.16.0
  ```


## Affected products

- github.com/go-skynet/LocalAI (Go) SEMVER:introduced=0, SEMVER:introduced=0,fixed=2.16.0

## Identifiers

- CVE-2024-5182
- GHSA-cpcx-r2gq-x893
- GO-2024-2938

## Related threats

- [GO-2024-2717 - LocalAI Command Injection in audioToWav in github.com/go-skynet/LocalAI](https://junglewise.ai/threats/cve-2024-2029-localai-command-injection-in-audiotowav)
- [GO-2024-2705 - LocalAI cross-site request forgery vulnerability in github.com/go-skynet/LocalAI](https://junglewise.ai/threats/cve-2024-3135-localai-cross-site-request-forgery-vulnerability)
