PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-29189: 
Python vulnerability analysis and mitigation

Overview

PyAnsys Geometry, a Python client library for the Ansys Geometry service and other CAD Ansys products, was found to contain a vulnerability in the file src/ansys/geometry/core/connection/product_instance.py. The vulnerability was discovered on March 25, 2024, and affects versions prior to 0.3.3 and 0.4.12. 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 (GitHub Advisory).

Technical details

The vulnerability stems from the improper usage of subprocess.Popen with shell=True in the _start_program method. This type of subprocess invocation is dangerous as it is vulnerable to various shell injection attacks. The issue was classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command) with a CVSS v3.1 score of 7.4 (HIGH), having a vector string of CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (GitHub Advisory, Bandit Docs).

Impact

The vulnerability could allow attackers to perform malicious operations on the current machine where the script is executed. Given the CVSS metrics, the vulnerability could lead to high impacts on confidentiality, integrity, and availability of the system, though it requires local access and has high attack complexity (GitHub Advisory).

Exploitability

The vulnerability requires local access to exploit and has high attack complexity. It can be triggered by directly calling the _start_program method, which could then be used to execute arbitrary commands through shell injection (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in versions 0.3.3 and 0.4.12. The resolution was implemented through pull requests #1076 and #1077, which ensure that the method is only called from within the library and no longer enables the shell=True option. Users are recommended to upgrade to these patched versions (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-cwm5-jh59-mwxrHIGH7.5
  • Python logoPython
  • twisted
NoYesOct 22, 2026
GHSA-53xc-49m8-p798HIGH7.5
  • Python logoPython
  • twisted
NoYesOct 22, 2026
GHSA-q7qq-6mhp-9rc4MEDIUM5.4
  • Python logoPython
  • twisted
NoYesOct 22, 2026
GHSA-2qrf-pqgx-qh9vMEDIUM4.9
  • Python logoPython
  • twisted
NoYesOct 22, 2026
GHSA-3476-c5c2-fr73LOWN/A
  • Python logoPython
  • twisted
NoYesOct 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management