CVE Database›CVE-2025-71176

CVE-2025-71176

pytest: pytest: Denial of Service or Privilege Escalation via insecure temporary directory handling

Loading…

Severity

Moderate

Red Hat Product Security

6.8

CVSS 3.1

Review impact separately from score.

Published · January 22, 2026

Updated · July 3, 2026

Description

A flaw was found in pytest. This vulnerability allows local users to exploit insecure temporary directory handling, specifically the reliance on predictable directory names in /tmp/pytest-of-{user}. An attacker can leverage this to cause a denial of service (DoS) or potentially gain elevated privileges on the system.

Statement

This vulnerability is rated Moderate for Red Hat products. The flaw in pytest allows a local attacker to cause a denial of service or potentially gain privileges by manipulating temporary directories in /tmp. This primarily affects systems where pytest is installed and executed by local users.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 6.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

CWE-379 · Creation of Temporary File in Directory with Insecure Permissions