Vulnerability Details CVE-2023-49797
PyInstaller bundles a Python application and all its dependencies into a single package. A PyInstaller built application, elevated as a privileged process, may be tricked by an unprivileged attacker into deleting files the unprivileged user does not otherwise have access to. A user is affected if **all** the following are satisfied: 1. The user runs an application containing either `matplotlib` or `win32com`. 2. The application is ran as administrator (or at least a user with higher privileges than the attacker). 3. The user's temporary directory is not locked to that specific user (most likely due to `TMP`/`TEMP` environment variables pointing to an unprotected, arbitrary, non default location). Either: A. The attacker is able to very carefully time the replacement of a temporary file with a symlink. This switch must occur exactly between `shutil.rmtree()`'s builtin symlink check and the deletion itself B: The application was built with Python 3.7.x or earlier which has no protection against Directory Junctions links. The vulnerability has been addressed in PR #7827 which corresponds to `pyinstaller >= 5.13.1`. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.001
EPSS Ranking 21.6%
CVSS Severity
CVSS v3 Score 8.8
Products affected by CVE-2023-49797
-
cpe:2.3:a:pyinstaller:pyinstaller:1.0
-
cpe:2.3:a:pyinstaller:pyinstaller:1.1
-
cpe:2.3:a:pyinstaller:pyinstaller:1.2
-
cpe:2.3:a:pyinstaller:pyinstaller:1.3
-
cpe:2.3:a:pyinstaller:pyinstaller:1.4
-
cpe:2.3:a:pyinstaller:pyinstaller:1.5
-
cpe:2.3:a:pyinstaller:pyinstaller:1.5.1
-
cpe:2.3:a:pyinstaller:pyinstaller:2.0
-
cpe:2.3:a:pyinstaller:pyinstaller:2.1
-
cpe:2.3:a:pyinstaller:pyinstaller:3.0
-
cpe:2.3:a:pyinstaller:pyinstaller:3.1
-
cpe:2.3:a:pyinstaller:pyinstaller:3.1.1
-
cpe:2.3:a:pyinstaller:pyinstaller:3.2
-
cpe:2.3:a:pyinstaller:pyinstaller:3.2.1
-
cpe:2.3:a:pyinstaller:pyinstaller:3.3
-
cpe:2.3:a:pyinstaller:pyinstaller:3.3.1
-
cpe:2.3:a:pyinstaller:pyinstaller:3.4
-
cpe:2.3:a:pyinstaller:pyinstaller:3.5
-
cpe:2.3:a:pyinstaller:pyinstaller:3.6
-
cpe:2.3:a:pyinstaller:pyinstaller:4.0
-
cpe:2.3:a:pyinstaller:pyinstaller:4.1
-
cpe:2.3:a:pyinstaller:pyinstaller:4.10
-
cpe:2.3:a:pyinstaller:pyinstaller:4.2
-
cpe:2.3:a:pyinstaller:pyinstaller:4.3
-
cpe:2.3:a:pyinstaller:pyinstaller:4.4
-
cpe:2.3:a:pyinstaller:pyinstaller:4.5
-
cpe:2.3:a:pyinstaller:pyinstaller:4.5.1
-
cpe:2.3:a:pyinstaller:pyinstaller:4.6
-
cpe:2.3:a:pyinstaller:pyinstaller:4.7
-
cpe:2.3:a:pyinstaller:pyinstaller:4.8
-
cpe:2.3:a:pyinstaller:pyinstaller:4.9
-
cpe:2.3:a:pyinstaller:pyinstaller:5.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.0.1
-
cpe:2.3:a:pyinstaller:pyinstaller:5.1
-
cpe:2.3:a:pyinstaller:pyinstaller:5.10.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.10.1
-
cpe:2.3:a:pyinstaller:pyinstaller:5.11.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.12.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.13.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.2
-
cpe:2.3:a:pyinstaller:pyinstaller:5.3
-
cpe:2.3:a:pyinstaller:pyinstaller:5.4
-
cpe:2.3:a:pyinstaller:pyinstaller:5.4.1
-
cpe:2.3:a:pyinstaller:pyinstaller:5.5
-
cpe:2.3:a:pyinstaller:pyinstaller:5.6
-
cpe:2.3:a:pyinstaller:pyinstaller:5.6.1
-
cpe:2.3:a:pyinstaller:pyinstaller:5.6.2
-
cpe:2.3:a:pyinstaller:pyinstaller:5.7.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.8.0
-
cpe:2.3:a:pyinstaller:pyinstaller:5.9.0