CVE-2019-16784

Local Privilege Escalation present only on the Windows version of PyInstaller

Description

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

Categories

7.0
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 3.22% Top 15%
Third-Party Advisory github.com
Affected: PyInstaller PyInstaller
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2019-16784?
CVE-2019-16784 has been scored as a high severity vulnerability.
How to fix CVE-2019-16784?
To fix CVE-2019-16784, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2019-16784 being actively exploited in the wild?
It is possible that CVE-2019-16784 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~3% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2019-16784?
CVE-2019-16784 affects PyInstaller PyInstaller.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.