GHSA-6w46-j5rx-g56g
pytest has vulnerable tmpdir handling
At a glance
- Published
- Updated
- CVE
- CVE-2025-71176
- Aliases
- PYSEC-2026-1845
- CVSS_V3
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
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 packages
| Package | Versions |
|---|---|
| PyPI · pytest | introduced 0, fixed 9.0.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-71176 ADVISORY
- https://github.com/pytest-dev/pytest/issues/13669 WEB
- https://github.com/pytest-dev/pytest/pull/14343 WEB
- https://github.com/pytest-dev/pytest/commit/95d8423bd24992deea5b9df32555fa1741679e2c WEB
- https://github.com/pytest-dev/pytes PACKAGE
- https://github.com/pytest-dev/pytest/releases/tag/9.0.3 WEB
- https://www.openwall.com/lists/oss-security/2026/01/21/5 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |