{"answers":{"affected":"3 open source packages ship an affected version, including lollms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3121 exists.","fix":"No fix has been published for CVE-2024-3121 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-3121 is a medium-severity command injection vulnerability in parisneo/lollms, published on 24 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-3121 and fix it if it is affected.\n\nWhat it is: CVE-2024-3121 is a medium-severity command injection vulnerability in parisneo/lollms, published on 24 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3121 exists.\n\nAffected packages and fixed versions:\n- lollms (PyPI): affected all versions up to 9.5.1; no fix listed\n- lollms (PyPI): affected all versions up to 9.5.1; no fix listed\n- lollms (PyPI): affected all versions up to 9.5.1; 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-3121/ (Markdown: https://insights.sbomify.com/CVE-2024-3121/index.md)","id":"CVE-2024-3121","markdown":"https://insights.sbomify.com/CVE-2024-3121/index.md","name":"CVE-2024-3121","record":{"aliases":["GHSA-79h8-gxhq-q3jg","PYSEC-2026-1584"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python LLM library","requires_auth":"none","summary":"Attackers can execute arbitrary commands via the create_conda_env function due to unsafe shell execution, affecting users of the lollms library.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"lollms","vendor":"lollms"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A remote code execution vulnerability exists in the create_conda_env function of the parisneo/lollms repository, version 5.9.0. The vulnerability arises from the use of shell=True in the subprocess.Popen function, which allows an attacker to inject arbitrary commands by manipulating the env_name and python_version parameters. This issue could lead to a serious security breach as demonstrated by the ability to execute the 'whoami' command among potentially other harmful commands.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2025-07-22","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-07-22T03:24:39Z","kind":"github_poc","ref":"https://github.com/dark-ninja10/CVE-2024-3121","stars":0,"title":"Remote Code Execution in create_conda_env function in parisneo/lollms"}],"tier":"weaponised"},"has_fix":false,"headline":"Remote Code Execution in create_conda_env function in parisneo/lollms","id":"CVE-2024-3121","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"CHANGING Mobile One Time Password - Arbitrary File Reading","id":"CVE-2024-3122"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":null,"source":"GHSA-79h8-gxhq-q3jg"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":"pkg:pypi/lollms","source":"GHSA-79h8-gxhq-q3jg"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":"pkg:pypi/lollms","source":"PYSEC-2026-1584"}],"prev":{"headline":"Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep","id":"CVE-2024-3120"},"products":["parisneo/lollms"],"published":"2024-06-24","related":[{"cvss_score":9.8,"headline":"Improper Access Control via Weak JWT Token in parisneo/lollms","id":"CVE-2026-1114","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Path Traversal in parisneo/lollms","id":"CVE-2024-3429","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":9.6,"headline":"Stored XSS in parisneo/lollms","id":"CVE-2026-1115","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":8.7,"headline":"Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms","id":"CVE-2026-12228","kev_date_added":null,"published":"2026-07-18"},{"cvss_score":8.3,"headline":"Insecure Direct Object Reference (IDOR) in parisneo/lollms","id":"CVE-2026-0562","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":8.2,"headline":"Cross-site Scripting (XSS) in parisneo/lollms","id":"CVE-2026-1116","kev_date_added":null,"published":"2026-04-12"},{"cvss_score":7.6,"headline":"CSRF Vulnerability in parisneo/lollms XTTS Server","id":"CVE-2024-4499","kev_date_added":null,"published":"2024-06-24"}],"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":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["parisneo"]},"summary":"Attackers can execute arbitrary commands via the create_conda_env function due to unsafe shell execution, affecting users of the lollms library.","url":"https://insights.sbomify.com/CVE-2024-3121/"}