GHSA-w476-p2h3-79g9: uv has differential in tar extraction with PAX headers
Impact In versions 0.9.4 and earlier of uv, tar archives containing PAX headers with file size overrides were not handled properly. As a result, an attacker could contrive a source distribution (as a tar archive) that would extract differently when installed via uv versus other Python package installers.
Published Oct 21, 2025
Affected packages
uv
- Ecosystem
- PyPI
- Affected
- <= 0.9.4
- Fixed in
- 0.9.5
- Check
pip show uv
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
In versions 0.9.4 and earlier of uv, tar archives containing PAX headers with file size overrides were not handled properly. As a result, an attacker could contrive a source distribution (as a tar archive) that would extract differently when installed via uv versus other Python package installers.
The underlying parsing differential here originates with astral-tokio-tar, which disclosed this vulnerability as CVE-2025-62518.
In practice, the impact of this vulnerability is low: only source distributions can be formatted as tar archives, and source distributions execute arbitrary code at build/installation time by definition. Consequently, a parser differential in tar extraction is strictly less powerful than the capabilities already exposed to an attacker who has the ability to control source distributions.
However, this particular source of malleability in source distributions is unintentional and not operating by design, and therefore we consider it a vulnerability despite its overlap in capabilities with intended behavior.
Patches
Versions 0.9.5 and newer of uv address the vulnerability above. Users should upgrade to 0.9.5 or newer.
Workarounds
Users are advised to upgrade to version 0.9.5 or newer to address this advisory.
Users should experience no breaking changes as a result of the patch above.
References
- See CVE-2025-62518 for the corresponding advisory against astral-tokio-tar
Credited to woodruffw, zanieb.
References
- https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9
- https://github.com/astral-sh/uv/pull/16387
- https://github.com/astral-sh/uv/commit/ae450662d1546e9853f67a8c61a506d3a892d963
- https://github.com/advisories/GHSA-j5gw-2vrg-8fgx
- https://github.com/astral-sh/uv/releases/tag/0.9.5
- https://github.com/advisories/GHSA-w476-p2h3-79g9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesGHSA-hq85-5cpj-mr62
uv's bundled CA store trusts an emSign root whose intermediate CA keys are compromised
critical9.1Oct 20, 2026CVE-2026-104843
uv: Path traversal on Windows through wheel extraction
medium5.9Oct 5, 2026GHSA-4gg8-gxpx-9rph
uv is vulnerable to arbitrary file write through entry point names
mediumMay 29, 2026CVE-2026-114110
uv vulnerable to arbitrary file deletion through RECORD entries
low2.1Apr 10, 2026GHSA-pqhf-p39g-3x64
uv allows ZIP payload obfuscation through parsing differentials
medium6.8Oct 29, 2025CVE-2025-54368
uv allows ZIP payload obfuscation through parsing differentials
medium6.8Aug 7, 2025
