{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6095 exists.","fix":"No fix has been published for CVE-2024-6095 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-6095 is a medium-severity server-side request forgery vulnerability in mudler/localai, published on 6 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6095 and fix it if it is affected.\n\nWhat it is: CVE-2024-6095 is a medium-severity server-side request forgery vulnerability in mudler/localai, published on 6 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6095 exists.\n\nAffected product: mudler/localai. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6095/ (Markdown: https://insights.sbomify.com/CVE-2024-6095/index.md)","id":"CVE-2024-6095","markdown":"https://insights.sbomify.com/CVE-2024-6095/index.md","name":"CVE-2024-6095","record":{"aliases":["GHSA-fgv5-qx89-qjrh"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"LocalAI server","requires_auth":"none","summary":"An attacker can exploit SSRF and partial LFI in the /models/apply endpoint to access internal servers and read local files.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"localai","vendor":"mudler"}],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-09-01","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-09-01T13:12:20Z","kind":"github_poc","ref":"https://github.com/Abdurahmon3236/-CVE-2024-6095","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-6095.yaml","stars":null,"title":"LocalAI - Partial Local File Read"}],"tier":"weaponised"},"has_fix":false,"headline":"SSRF and Partial LFI in /models/apply Endpoint in mudler/localai","id":"CVE-2024-6095","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Unsafe Deserialization Vulnerability","id":"CVE-2024-6096"},"packages":[],"prev":{"headline":"WP ULike \u003c 4.7.1 - Admin+ Stored XSS","id":"CVE-2024-6094"},"products":["mudler/localai"],"published":"2024-07-06","related":[{"cvss_score":9.8,"headline":"Command Injection in mudler/localai","id":"CVE-2024-5181","kev_date_added":null,"published":"2024-06-26"},{"cvss_score":9.8,"headline":"Command Injection in mudler/localai","id":"CVE-2024-2029","kev_date_added":null,"published":"2024-04-10"},{"cvss_score":8.8,"headline":"Remote Code Execution in mudler/localai","id":"CVE-2024-6983","kev_date_added":null,"published":"2024-09-27"},{"cvss_score":8.1,"headline":"Arbitrary File Write in mudler/LocalAI","id":"CVE-2024-6868","kev_date_added":null,"published":"2024-10-29"},{"cvss_score":7.5,"headline":"Timing Attack in mudler/localai","id":"CVE-2024-7010","kev_date_added":null,"published":"2024-10-29"},{"cvss_score":7.5,"headline":"Path Traversal in mudler/localai","id":"CVE-2024-5182","kev_date_added":null,"published":"2024-06-19"},{"cvss_score":6.5,"headline":"Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai","id":"CVE-2024-3135","kev_date_added":null,"published":"2024-04-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["mudler"]},"summary":"An attacker can exploit SSRF and partial LFI in the /models/apply endpoint to access internal servers and read local files.","url":"https://insights.sbomify.com/CVE-2024-6095/"}