# CVE-2025-59042: PYSEC-2026-1813 - PyInstaller has local privilege escalation vulnerability

Source: https://junglewise.ai/threats/cve-2025-59042-pyinstaller-has-local-privilege-escalation-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2025-59042 · Severity: medium · CVSS 4 · Published 2026-07-07

PyInstaller has local privilege escalation vulnerability

Technologies: [pyinstaller (PyPI)](https://junglewise.ai/threats/technologies/pyinstaller). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-59042 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-59042 being exploited in the wild.

**How severe is CVE-2025-59042?** Medium severity, with a CVSS score of 4, published 7 July 2026.

**Which products and versions are affected?** pyinstaller (PyPI) ECOSYSTEM:introduced=0,fixed=6.0.0.

**Is there a fix for CVE-2025-59042?** Yes. pyinstaller (PyPI): upgrade to 6.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-59042?** Check whether you run pyinstaller (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- pyinstaller (PyPI): upgrade to 6.0.0 or later

  ```sh
  pip install "pyinstaller>=6.0.0"
  ```


## Affected products

- pyinstaller (PyPI) ECOSYSTEM:introduced=0,fixed=6.0.0

## Identifiers

- CVE-2025-59042
- GHSA-p2xp-xx3r-mffc
- PYSEC-2026-1813

## Related threats

- [Local Privilege Escalation in Windows](https://junglewise.ai/threats/cve-2023-49797-local-privilege-escalation-in-windows)
- [PYSEC-2020-194 - In PyInstaller before version 3.6, only on Windows, a local privilege escalation vulnerability is…](https://junglewise.ai/threats/pysec-2020-194-in-pyinstaller-before-version-3-6-only-on-windows-a-2e4087da)
- [Local Privilege Escalation in PyInstaller](https://junglewise.ai/threats/cve-2019-16784-local-privilege-escalation-in-pyinstaller)
