CVE-2025-71176

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

Published Jan 22, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6w46-j5rx-g56g pytest has vulnerable tmpdir handling
History
Type Values Removed Values Added
First Time appeared Pytest
Pytest py
Vendors & Products Pytest
Pytest py
Type Values Removed Values Added
Title pytest: pytest: Denial of Service or Privilege Escalation via insecure temporary directory handling
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Weaknesses CWE-379
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jan 22, 2026, 12:26 PM
Reserved
Jan 22, 2026, 4:59 AM
Status
Deferred
Published
Jan 22, 2026, 5:16 AM
Modified
Jun 17, 2026, 10:03 AM
Severity
Moderate
Public date
Jan 22, 2026, 4:59 AM