6.8medium
pytest has vulnerable tmpdir handling
- Severity
- 6.8medium CVSS:3.1 by mitre
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-6w46-j5rx-g56gPYSEC-2026-1845
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
| Product or package | Versions | Reported by |
|---|---|---|
| pytest pytest | up to 9.0.2 | CVE List |
| pytest (PyPI) | before 9.0.3 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| mitre | 6.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| PyPA Advisory Database | 6.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
pytest hasta la versión 9.0.2 en UNIX depende de directorios con el patrón de nombre /tmp/pytest-of-{user}, lo que permite a usuarios locales causar una denegación de servicio o posiblemente obtener privilegios.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71176 changed 2026-01-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6w46-j5rx-g56g changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-71176 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1845 changed 2026-07-07 | CC-BY-4.0 |