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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pytest | No fix yet | — |
| Debian 13 | pytest | No fix yet | — |
| Debian 12 | pytest | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pytest | No fix yet | — |
| Ubuntu 18.04 LTS | pytest | No fix yet | — |
| Ubuntu 16.04 LTS | pytest | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | pytest +1 | 9.0.3-1.hum1 | RHSA-2026:8580 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-pytest | 9.0.3-1.1 | openSUSE-SU-2026:10666-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | python3-pytest | 2.9.2-4.amzn2.0.4 | ALAS2-2026-3253 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pytest | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | open-webui | 0.8.12-r4 | — |
| Wolfi rolling | py3-cassandra-medusa | 0.28.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pytest | < 9.0.3 | 9.0.3 | GHSA-6w46-j5rx-g56g |
Advisories 3
- RHSA-2026:8580 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 6, 2026
- openSUSE-SU-2026:10666-1 python311-pytest-9.0.3-1.1 on GA media SUSE / openSUSE Security Updates · May 2, 2026
- ALAS2-2026-3253 Moderate: python3-pytest security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 29, 2026