{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6983 exists.","fix":"No fix has been published for CVE-2024-6983 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-6983 is a high-severity code injection vulnerability in mudler/localai, published on 27 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6983 and fix it if it is affected.\n\nWhat it is: CVE-2024-6983 is a high-severity code injection vulnerability in mudler/localai, published on 27 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6983 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-6983/ (Markdown: https://insights.sbomify.com/CVE-2024-6983/index.md)","id":"CVE-2024-6983","markdown":"https://insights.sbomify.com/CVE-2024-6983/index.md","name":"CVE-2024-6983","record":{"aliases":["GHSA-v6qv-c78w-ff25"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"LocalAI server","requires_auth":"low_privilege","summary":"Attackers can upload malicious binary files to LocalAI to execute arbitrary code and gain full system control.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"localai","vendor":"mudler"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Remote Code Execution in mudler/localai","id":"CVE-2024-6983","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","id":"CVE-2024-6984"},"packages":[],"prev":{"headline":"Remote Code Execution in Calculate Function in parisneo/lollms","id":"CVE-2024-6982"},"products":["mudler/localai"],"published":"2024-09-27","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.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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-27","vendors":["mudler"]},"summary":"Attackers can upload malicious binary files to LocalAI to execute arbitrary code and gain full system control.","url":"https://insights.sbomify.com/CVE-2024-6983/"}