---
schema_version: '1.0'
id: security-20260711-540cbb
url: https://osv.dev/vulnerability/PYSEC-2026-1845
url_hash: 540cbb232eaf8d5268f12dcdd4345d061aa113a5eb2202550148c15f02fb648a
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-1845
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-71176
- PYSEC-2026-1845
- severity:CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
- pytest
- PyPI
lang: en
published_at: '2026-07-07T16:03:19Z'
fetched_at: '2026-07-11T06:37:18Z'
updated_at: '2026-07-11T06:39:54Z'
status: published
content_hash: 37868214e86aff3a57f59af3e3c1f5b0f803e9e5b8c7858968cc5f1d2c1df01d
license_note: full
summary: pytest has vulnerable tmpdir handling
summary_source: rss
summary_en: pytest has vulnerable tmpdir handling
entities:
- name: HashTag
  type: concept
key_facts: []
related: []
related_auto:
- name: SustainableQuantumComputing
  type: concept
  weight: 3.0
title: 'CVE-2025-71176: pytest has vulnerable tmpdir handling'
---

# CVE-2025-71176: pytest has vulnerable tmpdir handling

## TL;DR
pytest has vulnerable tmpdir handling

## Key Points
- cve / CVE-2025-71176 / PYSEC-2026-1845 / severity:CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L / pytest / PyPI

## Details
**Severity:** CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
**Advisory:** PYSEC-2026-1845 (CVE-2025-71176)

**Affected (your watchlist):**
- `PyPI:pytest` 7.4.4 → fixed in 9.0.3 [docker/docker-strands]

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

**References:**
- https://nvd.nist.gov/vuln/detail/CVE-2025-71176
- https://github.com/pytest-dev/pytest/issues/13669
- https://github.com/pytest-dev/pytest/pull/14343
- https://github.com/pytest-dev/pytest/commit/95d8423bd24992deea5b9df32555fa1741679e2c
- https://github.com/pytest-dev/pytes
- https://github.com/pytest-dev/pytest/releases/tag/9.0.3
- https://www.openwall.com/lists/oss-security/2026/01/21/5
- https://pypi.org/project/pytest
- https://github.com/advisories/GHSA-6w46-j5rx-g56g

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-1845_

## Source
元記事: [CVE-2025-71176: pytest has vulnerable tmpdir handling](https://osv.dev/vulnerability/PYSEC-2026-1845) — published 2026-07-07T16:03:19Z
