Advisory

GHSA-6w46-j5rx-g56g

Also known as: CVE-2025-71176, PYSEC-2026-1845

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: The source's own band: MODERATE

Dates

Published
2026-01-22 06:30 UTC
Modified
2026-09-10 03:50 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences