CVE-2025-71176
MEDIUM 6.8CVSS 3.1pytest has vulnerable tmpdir handling
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
- 22 Jan 2026
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-379
- Also known as
- GHSA-6w46-j5rx-g56gPYSEC-2026-1845
- Sources
- NVDJSONOSV GHSA-6w46-j5rx-g56gJSONOSV PYSEC-2026-1845JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | pytest | < 9.0.3 | 9.0.3 |
References
- https://github.com/pytest-dev/pytest/issues/13669 · WEB
- https://www.openwall.com/lists/oss-security/2026/01/21/5 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-71176 · ADVISORY
- 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://pypi.org/project/pytest · PACKAGE
- https://github.com/advisories/GHSA-6w46-j5rx-g56g · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 22 Jan 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Jan 2026)