S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Sep 24, 2024

CVE-2024-6095 Scanner

CVE-2024-6095 scanner - Local File Inclusion vulnerability in LocalAI

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.4k
Times Used
continuous scan runs
4.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-6095
5.8
CVSSmedium
Exploitable remotely over the internet · no authentication required.

A vulnerability in the /models/apply endpoint of mudler/localai versions 2.15.0 allows for Server-Side Request Forgery (SSRF) and partial Local File Inclusion (LFI). The endpoint supports both http(s):// and file:// schemes, where the latter can lead to LFI. However, the output is limited due to the length of the error message. This vulnerability can be exploited by an attacker with network access to the LocalAI instance, potentially allowing unauthorized access to internal HTTP(s) servers and partial reading of local files. The issue is fixed in version 2.17.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
mudler/localaiby mudler
AFFECTED< 2.17SAFE ✓≥ 2.17
localaiby mudler
AFFECTED< 2.17.0SAFE ✓≥ 2.17.0
Updated Aug 22, 2026View on NVD →
Detail

The LocalAI platform, developed by Mudler, provides a powerful tool for AI model management and deployment. It is widely used by developers and organizations to streamline their AI workflows. The platform allows users to apply and manage various machine learning models seamlessly. Given its capability to handle sensitive data, security is paramount for its users. Detecting vulnerabilities ensures that users can maintain the integrity and confidentiality of their AI applications.

The Local File Inclusion (LFI) vulnerability in LocalAI allows attackers to access internal files on the server. Specifically, the vulnerability exists in the /models/apply endpoint, which supports both HTTP(S) and file schemes. When exploited, this vulnerability can lead to unauthorized access to sensitive data. The issue has been addressed in version 2.17, emphasizing the importance of updating to maintain security.

The LFI vulnerability is present in the /models/apply endpoint, which processes requests containing URLs. An attacker can exploit this by crafting a request with a file URL, such as file:///etc/passwd. The endpoint responds with an error message, potentially leaking information about the file's content. Although the output is limited, attackers can gain insights into the server's file structure. This can lead to further attacks if sensitive files are accessible.

If exploited, the LFI vulnerability can allow attackers to read sensitive files on the server, compromising user data and internal configurations. This could lead to unauthorized access to system resources or sensitive information. Additionally, it may serve as a stepping stone for further attacks against the LocalAI instance or other connected systems. The resulting data exposure can significantly harm the organization's security posture.

By becoming a member of the S4E platform, you gain access to advanced security scanning tools that identify vulnerabilities like LFI in your systems. Our comprehensive threat exposure management services provide real-time insights into potential risks, helping you stay ahead of attackers. With our expertise, you can enhance your cybersecurity measures and ensure your digital assets are protected. Join us today to safeguard your applications and maintain the trust of your users.

References:

Solution Advice
  • Update LocalAI to version 2.17 or later to close the LFI vulnerability.
  • Implement input validation to sanitize user inputs in the /models/apply endpoint.
  • Restrict access to sensitive files and directories on the server.
  • Monitor server logs for unusual access patterns to detect potential exploitation attempts.
  • Regularly conduct security assessments to identify and mitigate new vulnerabilities.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.