{"id":"CVE-2019-16784","published":"2020-01-14T20:10:12Z","modified":"2024-08-05T01:24:48Z","title":"Local Privilege Escalation present only on the Windows version of PyInstaller","vendor":"PyInstaller","product":"PyInstaller","tier":"core","eol":null,"affectedVersions":[{"vendor":"PyInstaller","product":"PyInstaller","versions":["< 3.6"]}],"description":{"text":"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).","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00695,"percentile":0.52853,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"references":[{"url":"https://github.com/pyinstaller/pyinstaller/security/advisories/GHSA-7fcj-pq9j-wh2r","tags":["x_refsource_CONFIRM"]}],"techniques":[{"id":"T1068","name":"Exploitation for Privilege Escalation","tactics":["privilege-escalation"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"primary_impact","evidence":[],"confidence":"high"},{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"primary_impact","evidence":[],"confidence":"high"},{"id":"T1059.006","name":"Python","tactics":["execution"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"secondary_impact","evidence":[],"confidence":"high"}],"reports":[],"affected":[{"ecosystem":"PyPI","package":"PyInstaller","vulnerableRanges":["<3.6"],"patched":["3.6"],"from":["GHSA-7fcj-pq9j-wh2r","PYSEC-2020-175"],"provenance":"source"}],"advisories":[{"id":"GHSA-7fcj-pq9j-wh2r","url":"https://github.com/advisories/GHSA-7fcj-pq9j-wh2r","severity":"HIGH","ecosystem":"PyPI","package":"PyInstaller","vulnerableRanges":["<3.6"],"patched":["3.6"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2020-0155","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-0155","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2020-01-22","earliestUrl":"https://github.com/AlterSolutions/PyInstallerPrivEsc","repos":[{"name":"AlterSolutions/PyInstallerPrivEsc","url":"https://github.com/AlterSolutions/PyInstallerPrivEsc","stars":1,"created":"2020-01-22"},{"name":"Ckrielle/CVE-2019-16784-POC","url":"https://github.com/Ckrielle/CVE-2019-16784-POC","stars":0,"created":"2023-12-24"}]},"first":{"date":"2020-01-22","source":"PoC-in-GitHub","url":"https://github.com/AlterSolutions/PyInstallerPrivEsc"},"provenance":"source"},"exploitRefs":[],"flow":[{"stage":"primary","techniques":["T1190","T1068"],"provenance":"source"},{"stage":"secondary","techniques":["T1059.006"],"provenance":"source"}],"timeline":[{"date":"2020-01-14","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2019-16784","provenance":"source"},{"date":"2020-01-22","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/AlterSolutions/PyInstallerPrivEsc","provenance":"source"}],"speed":{"daysToPublicExploit":8,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":20.5,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":10.57,"detail":"percentile 0.5285"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":4.9,"detail":"base score 7"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}