Open-source package vulnerability · PyPI
CVE-2025-71176: pytest has vulnerable tmpdir handling
mediumCVSS 3.1 6.8GHSA-6w46-j5rx-g56g
pytest through 9.0.2 on UNIX relies on directories with the /tmp/pytest-of-{user} name pattern, which allows local users to cause a denial of service or possibly gain privileges.
Published Jan 22, 2026 · Updated Apr 13, 2026
Affected packages
pytest
- Ecosystem
- PyPI
- Affected
- < 9.0.3
- Fixed in
- 9.0.3
- Check
pip show pytest
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
pytest through 9.0.2 on UNIX relies on directories with the /tmp/pytest-of-{user} name pattern, which allows local users to cause a denial of service or possibly gain privileges.
Credited to adamjstewart, MatheusCylo.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-71176
- https://github.com/pytest-dev/pytest/issues/13669
- https://www.openwall.com/lists/oss-security/2026/01/21/5
- https://github.com/pytest-dev/pytest/pull/14343
- https://github.com/pytest-dev/pytest/commit/95d8423bd24992deea5b9df32555fa1741679e2c
- https://github.com/pytest-dev/pytest/releases/tag/9.0.3
- https://github.com/advisories/GHSA-6w46-j5rx-g56g
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
