{"answers":{"affected":"5 open source packages ship an affected version, including ansys-geometry-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29189 exists.","fix":"Upgrade ansys-geometry-core to a fixed version for your release line: 0.3.3 or 0.4.12.","what":"CVE-2024-29189 is a high-severity command injection vulnerability in pyansys-geometry, published on 26 Mar 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-29189 and fix it if it is affected.\n\nWhat it is: CVE-2024-29189 is a high-severity command injection vulnerability in pyansys-geometry, published on 26 Mar 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-29189 exists.\n\nAffected packages and fixed versions:\n- ansys-geometry-core (PyPI): affected from 0.3.0; fixed in 0.3.3, 0.4.12\n- ansys-geometry-core (PyPI): affected from 0.3.0; fixed in 0.3.3\n- ansys-geometry-core (PyPI): affected from 0.3.0; fixed in 0.3.3\n- ansys-geometry-core (PyPI): affected from 0.4.0; fixed in 0.4.12\n- ansys-geometry-core (PyPI): affected from 0.4.0; fixed in 0.4.12\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-29189/ (Markdown: https://insights.sbomify.com/CVE-2024-29189/index.md)","id":"CVE-2024-29189","markdown":"https://insights.sbomify.com/CVE-2024-29189/index.md","name":"CVE-2024-29189","record":{"aliases":["GHSA-38jr-29fh-w9vm","PYSEC-2026-1127"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python geometry library","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands on the local machine by exploiting the _start_program method in the PyAnsys Geometry library.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyansys_geometry","vendor":"ansys"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"PyAnsys Geometry is a Python client library for the Ansys Geometry service and other CAD Ansys products. On file src/ansys/geometry/core/connection/product_instance.py, upon calling this method _start_program directly, users could exploit its usage to perform malicious operations on the current machine where the script is ran. This vulnerability is fixed in 0.3.3 and 0.4.12.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ansys-geometry-core OS Command Injection vulnerability","id":"CVE-2024-29189","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":5,"n_references":7,"next":{"headline":"MobSF SSRF Vulnerability on assetlinks_check(act_name, well_knowns)","id":"CVE-2024-29190"},"packages":[{"ecosystem":"PyPI","fixed":["0.3.3","0.4.12"],"introduced":["0.3.0","0.4.0"],"last_affected":[],"package":"ansys-geometry-core","purl":"pkg:pypi/ansys-geometry-core","source":"PYSEC-2026-1127"},{"ecosystem":"PyPI","fixed":["0.3.3"],"introduced":["0.3.0"],"last_affected":[],"package":"ansys-geometry-core","purl":null,"source":"GHSA-38jr-29fh-w9vm"},{"ecosystem":"PyPI","fixed":["0.3.3"],"introduced":["0.3.0"],"last_affected":[],"package":"ansys-geometry-core","purl":"pkg:pypi/ansys-geometry-core","source":"GHSA-38jr-29fh-w9vm"},{"ecosystem":"PyPI","fixed":["0.4.12"],"introduced":["0.4.0"],"last_affected":[],"package":"ansys-geometry-core","purl":null,"source":"GHSA-38jr-29fh-w9vm"},{"ecosystem":"PyPI","fixed":["0.4.12"],"introduced":["0.4.0"],"last_affected":[],"package":"ansys-geometry-core","purl":"pkg:pypi/ansys-geometry-core","source":"GHSA-38jr-29fh-w9vm"}],"prev":{"headline":"Malicious directory junction can cause WiX RemoveFoldersEx to possibly delete elevated files","id":"CVE-2024-29188"},"products":["pyansys-geometry"],"published":"2024-03-26","related":[],"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-08-05","vendors":["ansys"]},"summary":"Attackers can execute arbitrary OS commands on the local machine by exploiting the _start_program method in the PyAnsys Geometry library.","url":"https://insights.sbomify.com/CVE-2024-29189/"}