PT-2024-22792 · Ansys · Pyansys Geometry

Robpasmue

·

Published

2024-03-25

·

Updated

2026-03-10

·

CVE-2024-29189

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions PyAnsys Geometry versions prior to 0.3.3 PyAnsys Geometry versions prior to 0.4.12
Description The issue concerns a Python client library for the Ansys Geometry service and other CAD Ansys products. Upon calling the start program method directly, users could exploit its usage to perform malicious operations on the current machine where the script is ran. This is due to a subprocess call with shell=True identified as a security issue in the file src/ansys/geometry/core/connection/product instance.py. The method is supposed to start a program with the given arguments and environment variables, but the use of shell=True allows for potential command execution.
Recommendations For PyAnsys Geometry versions prior to 0.3.3, update to version 0.3.3 or later to resolve the issue. For PyAnsys Geometry versions prior to 0.4.12, update to version 0.4.12 or later to resolve the issue. As a temporary workaround, consider restricting access to the start program method until a patch is available. Avoid using the shell=True option in the subprocess.Popen call to minimize the risk of exploitation.

Exploit

Fix

OS Command Injection

Weakness Enumeration

Related Identifiers

CVE-2024-29189
GHSA-38JR-29FH-W9VM

Affected Products

Pyansys Geometry