Skip to content
OpenAdvisories
Medium · 6.8 CVE-2025-71176 EUVD-2026-4171GHSA-6w46-j5rx-g56gPYSEC-2026-1845

pytest has vulnerable tmpdir handling

Published Jan 22, 2026 · Updated Jan 22, 2026 · Assigned by mitre

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 products

VendorProductAffectedFixed
pytest pytest ≤ 9.0.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pytest No fix yet —
Debian 13 pytest No fix yet —
Debian 12 pytest No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pytest No fix yet —
Ubuntu 26.04 LTS pytest No fix yet —
Ubuntu 25.10 pytest No fix yet —
Ubuntu 24.04 LTS pytest No fix yet —
Ubuntu 22.04 LTS pytest No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pytest No fix yet —
Ubuntu 18.04 LTS pytest No fix yet —
Ubuntu 16.04 LTS pytest No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 pytest +1 9.0.3-1.hum1 RHSA-2026:8580
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pytest 9.0.3-1.1 openSUSE-SU-2026:10666-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python3-pytest 2.9.2-4.amzn2.0.4 ALAS2-2026-3253

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytest No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.8.12-r4 —
Wolfi rolling py3-cassandra-medusa 0.28.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pytest < 9.0.3 9.0.3 GHSA-6w46-j5rx-g56g

Advisories 3

References