{"answers":{"affected":"3 open source packages ship an affected version, including refuel-autolabel. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-27321 exists.","fix":"No fix has been published for CVE-2024-27321 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-27321 is a high-severity code injection vulnerability in Refuel autolabel, published on 12 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-27321 and fix it if it is affected.\n\nWhat it is: CVE-2024-27321 is a high-severity code injection vulnerability in Refuel autolabel, published on 12 Sep 2024. It can only be exploited from the same machine or local network, 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-27321 exists.\n\nAffected packages and fixed versions:\n- refuel-autolabel (PyPI): affected from 0.0.8 up to 0.0.16; no fix listed\n- refuel-autolabel (PyPI): affected from 0.0.8 up to 0.0.16; no fix listed\n- refuel-autolabel (PyPI): affected from 0.0.8 up to 0.0.16; 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-27321/ (Markdown: https://insights.sbomify.com/CVE-2024-27321/index.md)","id":"CVE-2024-27321","markdown":"https://insights.sbomify.com/CVE-2024-27321/index.md","name":"CVE-2024-27321","record":{"aliases":["GHSA-4fgp-7vvm-m4jf","PYSEC-2026-1869"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python autolabel library","requires_auth":"none","summary":"Attackers can execute arbitrary code by providing a malicious CSV file to the Refuel Autolabel library's multilabel classification tasks.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HiddenLayer","cpe":[{"product":"autolabel","vendor":"refuel"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1236","name":"Improper Neutralization of Formula Elements in a CSV File"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"description":"An arbitrary code execution vulnerability exists in versions 0.0.8 and newer of the Refuel Autolabel library because of the way its multilabel classification tasks handle provided CSV files. If a user creates a multilabel classification task using a maliciously crafted CSV file containing Python code, the code will be passed to an eval function which executes it.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Refuel Autolab Eval Injection vulnerability","id":"CVE-2024-27321","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Deserialization in R","id":"CVE-2024-27322"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0.0.8"],"last_affected":["0.0.16"],"package":"refuel-autolabel","purl":null,"source":"GHSA-4fgp-7vvm-m4jf"},{"ecosystem":"PyPI","fixed":[],"introduced":["0.0.8"],"last_affected":["0.0.16"],"package":"refuel-autolabel","purl":"pkg:pypi/refuel-autolabel","source":"GHSA-4fgp-7vvm-m4jf"},{"ecosystem":"PyPI","fixed":[],"introduced":["0.0.8"],"last_affected":["0.0.16"],"package":"refuel-autolabel","purl":"pkg:pypi/refuel-autolabel","source":"PYSEC-2026-1869"}],"prev":{"headline":"Refuel Autolab Eval Injection vulnerability","id":"CVE-2024-27320"},"products":["autolabel"],"published":"2024-09-12","related":[{"cvss_score":7.8,"headline":"Refuel Autolab Eval Injection vulnerability","id":"CVE-2024-27320","kev_date_added":null,"published":"2024-09-12"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["Refuel"]},"summary":"Attackers can execute arbitrary code by providing a malicious CSV file to the Refuel Autolabel library's multilabel classification tasks.","url":"https://insights.sbomify.com/CVE-2024-27321/"}