Untrusted search path in pyinstaller - CVE-2025-59042
Published: September 9, 2025
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a special entry being appended to sys.path during the bootstrap process of a PyInstaller-frozen application, and due to the bootstrap script attempting to load an optional module for bytecode decryption while this entry is still present in sys.path. A local user can trick the installer under certain circumstances into executing a malicious code and escalate privileges on the system.
Affected software
openEuler
python-pyinstaller
python-pyinstaller-debuginfo
python-pyinstaller-debugsource
python-pyinstaller-help
python3-pyinstaller
How to mitigate CVE-2025-59042
python-pyinstaller - update to 5.13.0-3
python-pyinstaller-debuginfo - update to 5.13.0-3
python-pyinstaller-debugsource - update to 5.13.0-3
python-pyinstaller-help - update to 5.13.0-3
python3-pyinstaller - update to 5.13.0-3