Privilege escalationin PyInstaller.
Proof of concept public (GitHub).
In PyInstaller before version 3.6, only on Windows, a local privilege escalation vulnerability is present in this particular case: If a software using PyInstaller in "onefile" mode is launched by a privileged user (at least more than the current one) which have his "TempPath" resolving to a world writable directory. This is the case for example if the software is launched as a service or as a scheduled task using a system account (TempPath will be C:\Windows\Temp). In order to be exploitable the software has to be (re)started after the attacker launch the exploit program, so for a service launched at startup, a service restart is needed (e.g. after a crash or an upgrade).
- Upgrade PyInstaller to 3.6 or later.
- Upgrade PyInstaller (PyPI) to 3.6 or later.
- Upgrade pyinstaller (PyPI) to 3.6 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 24 Sep 2019CVE ID reserved by GitHub_M.
- 14 Jan 2020Published in the CVE List.
- 22 Jan 2020First public proof of concept on GitHub.
- 5 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other PyInstaller vulnerabilities
Same weakness: Execution with unnecessary privileges
- github.com x_refsource_CONFIRM
Patchminder. CVE-2019-16784: Privilege escalation in PyInstaller. https://patchminder.com/cve/cve-2019-16784/ (accessed 5 December 2026).