CVE-2019-16784
Pyinstaller vulnerability
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).
Affected products
Pyinstaller. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pyinstaller runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pyinstaller/pyinstaller/security/advisories/GHSA-7fcj-pq9j-wh2r · Patch
- github.com/pyinstaller/pyinstaller/commit/42a67148b3bdf9211fda8499fdc5b63acdd7e6cc
- github.com/pyinstaller/pyinstaller/commit/be948cf0954707671aa499da17b10c86b6fa5e5c
- nvd.nist.gov/vuln/detail/CVE-2019-16784
- github.com/pypa/advisory-database/tree/main/vulns/pyinstaller/PYSEC-2020-175.yaml
- github.com/advisories/GHSA-7fcj-pq9j-wh2r
- nvd.nist.gov/vuln/detail/CVE-2019-16784
- cve.org/CVERecord?id=CVE-2019-16784
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.