CVE-2025-71176
JSON

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 packageVersionsReported by
pytest pytestup to 9.0.2CVE List
pytest (PyPI)before 9.0.3GitHub Advisory Database, PyPA Advisory Database

All scores

mitre6.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
PyPA Advisory Database6.8medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Classification

CWE-379

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

SourceRecordLicence
CVE ListCVE-2025-71176 changed 2026-01-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-6w46-j5rx-g56g changed 2026-09-10CC-BY-4.0
NVDCVE-2025-71176 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1845 changed 2026-07-07CC-BY-4.0