---
schema_version: '1.0'
id: security-20260711-19aa55
url: https://osv.dev/vulnerability/GHSA-6w46-j5rx-g56g
url_hash: 19aa55651517e9626c8f2914294871291b26ec601a8e2b8c50036bd96dfddf2d
canonical_url: https://osv.dev/vulnerability/GHSA-6w46-j5rx-g56g
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-71176
- GHSA-6w46-j5rx-g56g
- 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-01-22T06:30:29Z'
fetched_at: '2026-07-11T06:37:18Z'
updated_at: '2026-07-11T06:39:54Z'
status: published
content_hash: f1394482cdc77f174982be9f2bdd89541ecd73c9fb73acb542babf2183ef4f2b
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 / GHSA-6w46-j5rx-g56g / 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:** GHSA-6w46-j5rx-g56g (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

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-6w46-j5rx-g56g_

## Source
元記事: [CVE-2025-71176: pytest has vulnerable tmpdir handling](https://osv.dev/vulnerability/GHSA-6w46-j5rx-g56g) — published 2026-01-22T06:30:29Z
