CVE-2024-29189 ansys-geometry-core OS Command Injection vulnerability
Attackers can execute arbitrary OS commands on the local machine by exploiting the _start_program method in the PyAnsys Geometry library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-29189?
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.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2024-29189?
5 open source packages ship an affected version, including ansys-geometry-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ansys-geometry-core PyPI | From 0.3.0 | 0.3.3, 0.4.12 |
ansys-geometry-core PyPI | From 0.3.0 | 0.3.3 |
ansys-geometry-core PyPI | From 0.3.0 | 0.3.3 |
ansys-geometry-core PyPI | From 0.4.0 | 0.4.12 |
ansys-geometry-core PyPI | From 0.4.0 | 0.4.12 |
Products include Ansys Pyansys Geometry.
How do I fix CVE-2024-29189?
Upgrade ansys-geometry-core to a fixed version for your release line: 0.3.3 or 0.4.12.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-29189 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29189 exists.
Sources
Also known as GHSA-38jr-29fh-w9vm, PYSEC-2026-1127.