patchminder
Proof of concept · GitHub CVE-2019-16784

Privilege escalationin PyInstaller.

Published 14 Jan 2020 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.7% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.6 or later
In plain words

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).

What to do now
  • Upgrade PyInstaller to 3.6 or later.
  • Upgrade PyInstaller (PyPI) to 3.6 or later.
  • Upgrade pyinstaller (PyPI) to 3.6 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
PyInstaller
before 3.6
3.6
CVE record
PyInstaller (PyPI)
before 3.6
3.6
GitHub advisory
pyinstaller (PyPI)
before 3.6
3.6
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 24 Sep 2019
    CVE ID reserved by GitHub_M.
  2. 14 Jan 2020
    Published in the CVE List.
  3. 22 Jan 2020
    First public proof of concept on GitHub.
  4. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundAlterSolutions/PyInstallerPrivEsc1 stars · created 22 Jan 2020Exploit for PyInstaller CVE-2019-16784
GitHubno warning signs foundCkrielle/CVE-2019-16784-POC0 stars · created 24 Dec 2023A Proof of Concept exploit for the PyInstaller CVE-2019-16783

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.

Related

Other PyInstaller vulnerabilities

Same weakness: Execution with unnecessary privileges

All CWE-250 vulnerabilities

References
Cite this page

Patchminder. CVE-2019-16784: Privilege escalation in PyInstaller. https://patchminder.com/cve/cve-2019-16784/ (accessed 5 December 2026).