Creation of temporary file in directory with insecure permissions in pytest - CVE-2025-71176
Published: March 6, 2026
Vulnerability identifier: #VU123607
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L/E:U/U:Clear
CVE-ID: CVE-2025-71176
CWE-ID: CWE-379
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vendor: pytest-dev
Affected software:
pytest
pytest
Detailed vulnerability description
The vulnerability allows a local user to gain access to escalate privileges on the system.
The vulnerability exists due to pytest on UNIX relies on directories with the /tmp/pytest-of-{user} name pattern. A local user can cause a denial of service or possibly gain privileges on the system.
How to mitigate CVE-2025-71176
Install updates from vendor's website.