What’s Vulnerable › Vulnerabilities
CVE-2025-71176: pytest has vulnerable tmpdir handling
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-01-22 · updated 2026-06-17
- Weakness: CWE-379
Description
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.
Affected products
- Pypi Pytest: before 9.0.3; 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1 (+183) — fixed in 9.0.3
- pytest: through 9.0.2
How to fix
Upgrade to a fixed version: Pypi Pytest 9.0.3. Check the vendor advisory for mitigations.
References
- https://github.com/pytest-dev/pytest/issues/13669
- https://www.openwall.com/lists/oss-security/2026/01/21/5
Get alerted when CVE-2025-71176 or the next vulnerability affects your stack