cve.bz

CVE-2019-16784 pyinstaller pyinstaller: Execution with Unnecessary Privileges

7.8 highEPSS 0.7%Fix available

High (7.8) in pyinstaller pyinstaller. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in pyinstaller 3.6.

On this page
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).

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 48th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-732 Incorrect Permission Assignment for Critical Resource
CWE-250 Execution with Unnecessary Privileges
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-16784 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-16784?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-16784?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-16784 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pyinstaller:pyinstallerbefore 3.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7fcj-pq9j-wh2rPyPIpyinstaller<3.63.6
PYSEC-2020-175PyPIpyinstaller<3.63.6

Attack patterns (CAPEC)

  • CAPEC-69 Target Programs with Elevated Privileges Likelihood: High · Severity: Very High
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON