{"answers":{"affected":"3 open source packages ship an affected version, including github.com/go-skynet/LocalAI. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3135 exists.","fix":"No fix has been published for CVE-2024-3135 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-3135 is a medium-severity vulnerability in mudler/localai, published on 1 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-3135 and fix it if it is affected.\n\nWhat it is: CVE-2024-3135 is a medium-severity vulnerability in mudler/localai, published on 1 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3135 exists.\n\nAffected packages and fixed versions:\n- github.com/go-skynet/LocalAI (Go): affected all versions; no fix listed\n- github.com/go-skynet/LocalAI (Go): affected all versions up to 2.7.0; no fix listed\n- github.com/go-skynet/LocalAI (Go): affected all versions up to 2.7.0; no fix listed\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-3135/ (Markdown: https://insights.sbomify.com/CVE-2024-3135/index.md)","id":"CVE-2024-3135","markdown":"https://insights.sbomify.com/CVE-2024-3135/index.md","name":"CVE-2024-3135","record":{"aliases":["GHSA-jhvf-7c85-3c9g","GO-2024-2705"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["denial_of_service","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"LocalAI server","requires_auth":"none","summary":"Attackers can force victims to perform unauthorized resource-intensive actions on their LocalAI instance, leading to resource exhaustion and disk space consumption.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"localai","vendor":"mudler"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"A Cross-Site Request Forgery (CSRF) vulnerability exists in the mudler/localai application, allowing attackers to craft malicious webpages that, when visited by a victim, perform unauthorized actions on the victim's local LocalAI instance without their consent. This vulnerability enables attackers to exhaust system resources, consume credits, and fill disk space by making numerous resource-intensive API calls, such as generating images or uploading files. The vulnerability stems from the application's acceptance of simple request content-types without requiring CSRF tokens or implementing other CSRF mitigation measures. Successful exploitation does not require network access to the vulnerable LocalAI environment.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Cross-Site Request Forgery (CSRF) Vulnerability in mudler/localai","id":"CVE-2024-3135","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"csrf","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"MasterStudy LMS \u003c= 3.3.3 - Unauthenticated Local File Inclusion via template","id":"CVE-2024-3136"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","source":"GO-2024-2705"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.7.0"],"package":"github.com/go-skynet/LocalAI","purl":null,"source":"GHSA-jhvf-7c85-3c9g"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.7.0"],"package":"github.com/go-skynet/LocalAI","purl":"pkg:golang/github.com/go-skynet/LocalAI","source":"GHSA-jhvf-7c85-3c9g"}],"prev":{"headline":"Master Addons for Elementor \u003c= 2.0.6.0 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2024-3134"},"products":["mudler/localai"],"published":"2024-04-01","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"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["mudler"]},"summary":"Attackers can force victims to perform unauthorized resource-intensive actions on their LocalAI instance, leading to resource exhaustion and disk space consumption.","url":"https://insights.sbomify.com/CVE-2024-3135/"}