Advisory

PYSEC-2026-1845

Also known as: CVE-2025-71176, GHSA-6w46-j5rx-g56g

Summary

pytest has vulnerable tmpdir handling

Details

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.

Severity

Medium Basis: CVSS v3 score 6.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

pytest

PyPI · All systems

Affected

  • introduced 0, fixed 9.0.3 (ecosystem)

Fixed versions

9.0.3

Fix

  • Fixed version 9.0.3
    pip install --upgrade pytest==9.0.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences