Every CVE Search/ Get API key

CVE-2025-71176

pytest has vulnerable tmpdir handling

6.8 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
Low

Exploit likelihood

0.15%Up 0.1 points since Jan 22, 2026
90%50%10%1%

What each source reports

CVE List Score used 6.8

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.

Record
CVE-2025-71176
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weakness
CWE-379
Updated
2026-11-02
EUVDEUVD-2026-4171 6.8

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.

Record
EUVD-2026-4171
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-6w46-j5rx-g56g 6.8

pytest 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.

Record
GHSA-6w46-j5rx-g56g
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weakness
CWE-379
Updated
2026-11-02
NVD 6.8

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.

Record
CVE-2025-71176
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weakness
CWE-379
Updated
2026-11-02
OSV 6.8

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.

Record
CVE-2025-71176
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weakness
CWE-379
Updated
2026-11-02
OSVDEBIAN-CVE-2025-71176 6.8

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.

Record
DEBIAN-CVE-2025-71176
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
Show 12 moreShow less
OSVGHSA-6w46-j5rx-g56g 6.8

pytest 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.

Record
GHSA-6w46-j5rx-g56g
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weakness
CWE-379
Updated
2026-11-02
OSVPYSEC-2026-1845 6.8

pytest 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.

Record
PYSEC-2026-1845
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2026:8580 6.8

Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Record
RHSA-2026:8580
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
OSVROOT-APP-PYPI-CVE-2025-71176 6.8

CVE-2025-71176 in rootio-pytest - Patched by Root

Root has patched CVE-2025-71176 in the rootio-pytest package for Root:PyPI. Multiple fixed versions available.

Record
ROOT-APP-PYPI-CVE-2025-71176
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2025-71176 6.8

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.

Record
UBUNTU-CVE-2025-71176
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
OSVAZL-75014 No score

CVE-2025-71176 affecting package pytest 7.4.0-2

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.

Record
AZL-75014
Updated
2026-11-05
OSVCLSA-2026-1778719541 No score

TuxCare security update for pytest (1 CVE)

TuxCare rebuilt pytest to address 1 CVE. Fixed in 8.4.2.post1+tuxcare.

Record
CLSA-2026-1778719541
Updated
2026-11-02
OSVCLSA-2026-1778719543 No score

TuxCare security update for pytest (1 CVE)

TuxCare rebuilt pytest to address 1 CVE. Fixed in 7.4.4.post1+tuxcare.

Record
CLSA-2026-1778719543
Updated
2026-11-02
OSVopenSUSE-SU-2026:10666-1 No score

python311-pytest-9.0.3-1.1 on GA media

These are all security issues fixed in the python311-pytest-9.0.3-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:10666-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:20692-1 No score

Security update for python-pytest

This update for python-pytest fixes the following issue:

  • CVE-2025-71176: a TOCTOU race condition can cause a denial of service or possibly gain privileges (bsc#1257090).
Record
openSUSE-SU-2026:20692-1
Updated
2026-11-02
OSVSUSE-SU-2026:1744-1 No score

Security update for python-pytest

This update for python-pytest fixes the following issue

  • CVE-2025-71176: a TOCTOU race condition can cause a denial of service or possibly gain privileges (bsc#1257090).
Record
SUSE-SU-2026:1744-1
Updated
2026-11-02
OSVSUSE-SU-2026:21568-1 No score

Security update for python-pytest

This update for python-pytest fixes the following issue:

  • CVE-2025-71176: a TOCTOU race condition can cause a denial of service or possibly gain privileges (bsc#1257090).
Record
SUSE-SU-2026:21568-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
pytest
PyPI
before 9.0.3
9.0.3
pytest
Azure Linux:3
through 7.4.0-2 None known
pytest
TuxCare:PyPI
8.4.2 up to 8.4.2.post1+tuxcare
8.4.2.post1+tuxcare
pytest
TuxCare:PyPI
7.4.4 up to 7.4.4.post1+tuxcare
7.4.4.post1+tuxcare
pytest
Debian:12
All versions, plus listed versions
7.2.1-27.3.2-17.4.0-17.4.0-27.4.1-1
Show 34 moreShow less
7.4.2-17.4.3-17.4.3-27.4.4-17.4.4-27.4.4-38.0.0-18.0.0~rc1-18.0.1-18.0.2-18.1.1-18.1.1-28.1.2-18.2.1-18.2.1-28.2.2-18.2.2-28.3.1-18.3.2-18.3.3-18.3.4-18.3.5-18.3.5-28.4.1-18.4.2-19.0.0-19.0.1-19.0.2-19.0.2-29.0.2-39.0.2-49.0.3-19.1.1-19.1.1-1~bpo13+1
None known
pytest
Debian:13
All versions, plus listed versions
8.3.5-28.4.1-18.4.2-19.0.0-19.0.1-1
Show 7 moreShow less
9.0.2-19.0.2-29.0.2-39.0.2-49.0.3-19.1.1-19.1.1-1~bpo13+1
None known
pytest
Debian:14
All versions, plus listed versions
8.3.5-28.4.1-18.4.2-19.0.0-19.0.1-1
Show 7 moreShow less
9.0.2-19.0.2-29.0.2-39.0.2-49.0.3-19.1.1-19.1.1-1~bpo13+1
None known
pytest
PyPI
before 9.0.3, plus listed versions
2.0.02.0.12.0.22.0.32.1.0
Show 45 moreShow less
2.1.12.1.22.1.32.2.02.2.12.2.22.2.32.2.42.3.02.3.12.3.22.3.32.3.42.3.52.4.02.4.12.4.22.5.02.5.12.5.22.6.02.6.12.6.22.6.32.6.42.7.02.7.12.7.22.7.32.8.02.8.12.8.22.8.32.8.42.8.52.8.62.8.72.9.02.9.12.9.23.0.03.0.13.0.23.0.33.0.4
9.0.3
pytest
Red Hat:hummingbird:1
before 0:9.0.3-1.hum1
0:9.0.3-1.hum1
python3-pytest
Red Hat:hummingbird:1
before 0:9.0.3-1.hum1
0:9.0.3-1.hum1
Show 11 moreShow less
Affected packages
PackageAffectedFixed
rootio-pytest
Root:PyPI
before 9.0.2+root.io.1
9.0.2+root.io.18.4.2+root.io.18.3.5+root.io.18.4.2+root.io.29.0.2+root.io.28.3.5+root.io.28.1.2+root.io.17.4.4+root.io.18.3.5+root.io.38.1.2+root.io.27.4.4+root.io.28.4.2+root.io.39.0.2+root.io.38.3.3+root.io.18.3.2+root.io.18.2.2+root.io.18.0.2+root.io.18.2.1+root.io.18.3.4+root.io.18.0.0+root.io.18.3.0+root.io.18.0.1+root.io.18.2.0+root.io.18.3.1+root.io.18.1.1+root.io.1
pytest
Root:PyPI
before 8.4.2+aikido.2
8.4.2+aikido.29.0.2+aikido.28.3.5+aikido.2
pytest
Ubuntu:16.04:LTS
All versions, plus listed versions
2.7.2-22.7.3-12.8.7-4
None known
pytest
Ubuntu:18.04:LTS
All versions, plus listed versions
3.1.3-1ubuntu13.2.1-23.2.5-13.2.5-23.2.5-2ubuntu13.3.2-2
None known
pytest
Ubuntu:20.04:LTS
All versions, plus listed versions
3.10.1-24.6.6-1ubuntu44.6.8-1ubuntu14.6.9-1
None known
pytest
Ubuntu:22.04:LTS
All versions, plus listed versions
6.0.2-2ubuntu16.2.5-1ubuntu16.2.5-1ubuntu2
None known
pytest
Ubuntu:24.04:LTS
All versions, plus listed versions
7.4.0-27.4.3-17.4.3-27.4.4-1
None known
pytest
Ubuntu:25.10
All versions, plus listed versions
8.3.5-18.3.5-2
None known
pytest
Ubuntu:26.10
All versions, plus listed versions
9.0.2-49.1.1-1
None known
pytest
Ubuntu:26.04:LTS
All versions, plus listed versions
8.3.5-28.4.2-19.0.2-29.0.2-4
None known
python-pytest
openSUSE:Tumbleweed
before 9.0.3-1.1
9.0.3-1.1

History

History
RecordedChangedSources
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-71176 is a medium vulnerability (CVSS 6.8) in Pytest, published January 22, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.15%, the 4th percentile. Fixed in pytest 9.0.3.

References

Show 17 moreShow less
This page doesn't list everything

Left out here: 139 versions. The JSON record has them.

MoveEnter Open