{"answers":{"affected":"3 open source packages ship an affected version, including composio-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8864 exists.","fix":"No fix has been published for CVE-2024-8864 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-8864 is a medium-severity code injection vulnerability in composiohq composio, published on 15 Sep 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-8864 and fix it if it is affected.\n\nWhat it is: CVE-2024-8864 is a medium-severity code injection vulnerability in composiohq composio, published on 15 Sep 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-8864 exists.\n\nAffected packages and fixed versions:\n- composio-core (PyPI): affected all versions up to 0.5.6; no fix listed\n- composio-core (PyPI): affected all versions up to 0.5.6; no fix listed\n- composio-core (PyPI): affected all versions up to 0.5.6; 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-8864/ (Markdown: https://insights.sbomify.com/CVE-2024-8864/index.md)","id":"CVE-2024-8864","markdown":"https://insights.sbomify.com/CVE-2024-8864/index.md","name":"CVE-2024-8864","record":{"aliases":["GHSA-mrmh-3hqh-pfw7","PYSEC-2026-1266"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python math library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code via the Calculator function in the composio Python library, posing a critical security risk.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"composio","vendor":"composio"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A vulnerability has been found in composiohq composio up to 0.5.6 and classified as critical. Affected by this vulnerability is the function Calculator of the file python/composio/tools/local/mathematical/actions/calculator.py. The manipulation leads to code injection. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.","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":"composiohq composio calculator.py Calculator code injection","id":"CVE-2024-8864","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":3,"n_references":4,"next":{"headline":"composiohq composio api.py path path traversal","id":"CVE-2024-8865"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.6"],"package":"composio-core","purl":null,"source":"GHSA-mrmh-3hqh-pfw7"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.6"],"package":"composio-core","purl":"pkg:pypi/composio-core","source":"GHSA-mrmh-3hqh-pfw7"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.5.6"],"package":"composio-core","purl":"pkg:pypi/composio-core","source":"PYSEC-2026-1266"}],"prev":{"headline":"aimhubio aim Text Explorer textbox.tsx dangerouslySetInnerHTML cross site scripting","id":"CVE-2024-8863"},"products":["composio"],"published":"2024-09-15","related":[{"cvss_score":9.8,"headline":"Authentication Bypass in composiohq/composio","id":"CVE-2024-8954","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":7.5,"headline":"ComposioHQ has a directory traversal vulnerability","id":"CVE-2025-56427","kev_date_added":null,"published":"2025-12-04"},{"cvss_score":7.2,"headline":"Unsafe eval usage in composiohq/composio","id":"CVE-2024-8953","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":7.2,"headline":"Unrestricted File Write and Read in composiohq/composio","id":"CVE-2024-8958","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":6.8,"headline":"SSRF in composiohq/composio","id":"CVE-2024-8952","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":6.8,"headline":"SSRF in composiohq/composio","id":"CVE-2024-8955","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":6.4,"headline":"Composio Command Execution vulnerability","id":"CVE-2024-53526","kev_date_added":null,"published":"2025-01-08"}],"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":"partial"},"state":"PUBLISHED","updated":"2024-09-16","vendors":["composiohq"]},"summary":"Attackers can execute arbitrary code via the Calculator function in the composio Python library, posing a critical security risk.","url":"https://insights.sbomify.com/CVE-2024-8864/"}