{"id":"CVE-2024-29189","aliases":["CVE-2024-29189","GHSA-38jr-29fh-w9vm","PYSEC-2026-1127"],"related":[],"kind":"vulnerability","state":"published","title":"ansys-geometry-core OS Command Injection vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"subprocess call with shell=True identified, security issue.\n\n#### Code\n\nOn file [src/ansys/geometry/core/connection/product_instance.py](https://github.com/ansys/pyansys-geometry/blob/52cba1737a8a7812e5430099f715fa2160ec007b/src/ansys/geometry/core/connection/product_instance.py#L403-L428):\n\n```\n403 def _start_program(args: List[str], local_env: Dict[str, str]) -> subprocess.Popen:\n404     \"\"\"\n405     Start the program where the path is the first item of the ``args`` array argument.\n406\n407     Parameters\n408     ----------\n409     args : List[str]\n410         List of arguments to be passed to the program. The first list's item shall\n411         be the program path.\n412     local_env : Dict[str,str]\n413         Environment variables to be passed to the program.\n414\n415     Returns\n416     -------\n417     subprocess.Popen\n418         The subprocess object.\n419     \"\"\"\n420      return subprocess.Popen(\n421         args,\n422         shell=os.name != \"nt\",\n423         stdin=subprocess.DEVNULL,\n424         stdout=subprocess.DEVNULL,\n425         stderr=subprocess.DEVNULL,\n426         env=local_env,\n427      )\n428 \n429 \n\n```\n\nUpon calling this method ``_start_program`` directly, users could exploit its usage to perform malicious operations on the current machine where the script is ran. With this resolution made through #1076 and #1077, we make sure that this method is only called from within the library and we are no longer enabling the ``shell=True`` option.\n\n#### CWE - 78\n\nFor more information see https://cwe.mitre.org/data/definitions/78.html\n\n#### More information\n\nVisit https://bandit.readthedocs.io/en/1.7.8/plugins/b602_subprocess_popen_with_shell_equals_true.html to find out more information.","format":"markdown","source":"ghsa"},{"lang":"es","text":"PyAnsys Geometry es una librería cliente de Python para el servicio Ansys Geometry y otros productos CAD Ansys. En el archivo src/ansys/geometry/core/connection/product_instance.py, al llamar directamente a este método _start_program, los usuarios podrían explotar su uso para realizar operaciones maliciosas en la máquina actual donde se ejecuta el script. Esta vulnerabilidad se solucionó en 0.3.3 y 0.4.12.","source":"nvd"}],"published":"2024-03-25T19:37:46.000Z","modified":"2026-07-07T17:57:23.849Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":7.4,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":">= 0.3.0, < 0.3.3","status":"affected"},{"version":">= 0.4.0, < 0.4.12","status":"affected"}],"vendor":"ansys","product":"pyansys-geometry","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.3.0","fixed":"0.3.3","status":"affected"}],"vendor":"ansys","product":"pyansys-geometry","cpe":"cpe:2.3:a:ansys:pyansys-geometry:0.3.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.4.0","fixed":"0.4.12","status":"affected"}],"vendor":"ansys","product":"pyansys-geometry","cpe":"cpe:2.3:a:ansys:pyansys-geometry:0.4.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0","status":"affected","fixed":"0.3.3"}],"ecosystem":"PyPI","package":"ansys-geometry-core","purl":"pkg:pypi/ansys-geometry-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.4.0","status":"affected","fixed":"0.4.12"}],"ecosystem":"PyPI","package":"ansys-geometry-core","purl":"pkg:pypi/ansys-geometry-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.3.0","fixed":"0.3.3"},{"status":"affected","introduced":"0.4.0","fixed":"0.4.12"}],"vendor":"ansys","product":"pyansys_geometry","cpe":"cpe:2.3:a:ansys:pyansys_geometry:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0","status":"affected","fixed":"0.3.3"},{"type":"ecosystem","introduced":"0.4.0","status":"affected","fixed":"0.4.12"}],"ecosystem":"PyPI","package":"ansys-geometry-core","purl":"pkg:pypi/ansys-geometry-core","source":"pysec"}],"references":[{"url":"https://github.com/ansys/pyansys-geometry/security/advisories/GHSA-38jr-29fh-w9vm","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansys/pyansys-geometry/pull/1076","tags":["issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansys/pyansys-geometry/pull/1077","tags":["issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansys/pyansys-geometry/commit/902071701c4f3a8258cbaa46c28dc0a65442d1bc","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansys/pyansys-geometry/commit/f82346b9432b06532e84f3278125f5879b4e9f3f","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bandit.readthedocs.io/en/1.7.8/plugins/b602_subprocess_popen_with_shell_equals_true.html","tags":["technical-description","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ansys/pyansys-geometry/blob/52cba1737a8a7812e5430099f715fa2160ec007b/src/ansys/geometry/core/connection/product_instance.py#L403-L428","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29189","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ansys/pyansys-geometry","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ansys-geometry-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-38jr-29fh-w9vm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-08-05T20:24:46.363Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-29189","url":"https://www.cve.org/CVERecord?id=CVE-2024-29189","licence":"CVE Terms of Use","modified":"2024-08-05T20:27:31.415Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-38jr-29fh-w9vm","url":"https://github.com/advisories/GHSA-38jr-29fh-w9vm","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:23.849Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-29189","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29189","licence":"Public domain","modified":"2026-06-17T07:22:35.517Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1127","url":"https://osv.dev/vulnerability/PYSEC-2026-1127","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:21.275Z"}],"updatedAt":"2026-11-25T22:58:37.892Z","epss":{"score":0.00489,"percentile":0.3491,"date":"2026-11-30T12:00:22.000Z"}}