Vulnerability DatabaseGHSA-vjvj-3m3f-fgmm

GHSA-vjvj-3m3f-fgmm: 
Python vulnerability analysis and mitigation

Summary

In uv versions 0.1.29 through 0.13.9, an attacker can construct a ZIP archive that uv and pip both install successfully, but which produces different file contents depending on the installer. Users are encouraged to upgrade to uv 0.13.10, which addresses this differential by rejecting ZIP members whose validated descriptor size disagrees with the compressed size in the central directory.

Details

When a ZIP member uses a data descriptor, its compressed size is recorded both after the file data and in the archive’s central directory. When extracting such a member, uv’s streaming extractor reads to the end of the compressed data. Python’s zipfile module reads only the number of compressed bytes declared in the central directory. By understating that size, an attacker can cause zipfile to read only a prefix of the file that uv extracts.

  1. If the prefix has a different CRC32 checksum from the full file, zipfile rejects the member. uv accepts the archive and extracts the full file.
  2. An attacker can construct a file whose prefix and full contents have the same CRC32 checksum. In this case, pip can install the prefix while uv installs the full file. The prefix can be empty, so a module that appears empty to a tool using zipfile can contain executable Python code when installed by uv. Both installers can verify the same SHA-256 digest, since they receive identical archive bytes. As with GHSA-pqhf-p39g-3x64, exploitation requires a user to install or build an attacker-controlled distribution. For a wheel, the concealed code can execute when the installed module is subsequently imported. For a ZIP-based source distribution, it can execute during dependency resolution or installation if uv invokes the package’s build backend. Unlike GHSA-pqhf-p39g-3x64, we evaluate this as a "low" because PyPI itself now provides ecosystem-wide mitigations for malformed ZIPs.

Impact

Like GHSA-8qf3-x8v5-2pj8, the practical impact of this vulnerability is limited by a number of factors:

  • To be compromised via this vulnerability, user interaction of some sort is required. In particular, the user must run uv install $package with an attacker-controlled $package.
  • When using wheel distributions, installation of the malicious package is not sufficient for execution of malicious code, the vicim would need to perform a separate invocation, e.g., python -c "import $package".
  • If a ZIP-based source distribution (which are less common than tarball source distributions), is encountered, malicious code can be executed during package resolution or installation. uv may invoke the malicious code when building the source distribution into a wheel.

Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-fmmw-m59r-c4pfHIGH7.3
  • Python logoPython
  • sentry
NoYesNov 24, 2026
GHSA-jh8f-87gj-2mw7MEDIUM6.5
  • Python logoPython
  • webvigil
NoYesNov 24, 2026
GHSA-wfp3-jwpm-7j2xMEDIUM5.3
  • Python logoPython
  • webvigil
NoYesNov 24, 2026
GHSA-hhpx-9q93-mv55MEDIUM4.7
  • Python logoPython
  • webvigil
NoYesNov 24, 2026
GHSA-vjvj-3m3f-fgmmLOWN/A
  • Python logoPython
  • uv
NoNoNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management