# Local Privilege Escalation in PyInstaller

Advisory record · `GHSA-7fcj-pq9j-wh2r`

- **Identifiers:** `GHSA-7fcj-pq9j-wh2r` · `CVE-2019-16784` · `PYSEC-2020-175`
- **State:** Confirmed
- **Severity:** CVSS 7.0 High
- **Critical:** No
- **Weakness (CWE):** [CWE-250](https://cwe.mitre.org/data/definitions/250.html)
- **Tags:** [Privilege escalation](https://agentprime.io/advisories/tag/privilege-escalation.md)
- **Published:** 16 Jan 2020
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 16 Jan 2020, 22:18 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `pyinstaller` (PyPI): affected `<3.6`; fixed in `3.6`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Local privilege escalation affects pyinstaller versions before 3.6, specifically Windows software frozen in "onefile" mode. An attacker with local access can exploit this when a privileged user runs such software whose temp path resolves to a world-writable directory, such as when launched as a service or scheduled task under a system account. Upgrade to pyinstaller 3.6 and rebuild affected Windows software; no workaround is known.

Written 5 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.0 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0069, the 53rd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:37 UTC: First seen by agentprime
- 31 Oct 2026, 14:37 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-7fcj-pq9j-wh2r)

## Sources

- [GitHub Advisory Database: GHSA-7fcj-pq9j-wh2r](https://github.com/advisories/GHSA-7fcj-pq9j-wh2r)
- [OSV: GHSA-7fcj-pq9j-wh2r](https://osv.dev/vulnerability/GHSA-7fcj-pq9j-wh2r)
- <https://github.com/pyinstaller/pyinstaller/security/advisories/GHSA-7fcj-pq9j-wh2r>
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16784>
- <https://github.com/pyinstaller/pyinstaller/commit/42a67148b3bdf9211fda8499fdc5b63acdd7e6cc>
- <https://github.com/pyinstaller/pyinstaller/commit/be948cf0954707671aa499da17b10c86b6fa5e5c>
- <https://github.com/pyinstaller/pyinstaller>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyinstaller/PYSEC-2020-175.yaml>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-7fcj-pq9j-wh2r>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-7fcj-pq9j-wh2r/>. Everything for agents: <https://agentprime.io/llms.txt>.
