pytest-dev/pytes · Security
pytest has vulnerable tmpdir handling
- GHSA ID
- GHSA-6w46-j5rx-g56g
- CVE ID
- CVE-2025-71176
- Severity
- medium
- Published
- Updated
- CVSS
- 6.8 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
- CVSS v3
- 6.8 · 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.
CWEs
- CWE-379 · Creation of Temporary File in Directory with Insecure Permissions
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 ↗