CVE-2025-71176
Pytest Temporary Directory Privilege Escalation
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.
INFO
Published Date :
Jan. 22, 2026, 5:16 a.m.
Last Modified :
June 17, 2026, 10:03 a.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2025-71176
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | 8254265b-2729-46b6-b9e3-3dfca2d5bfca | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update pytest to a secure version.
- Ensure temporary directory cleanup.
- Restrict access to temporary directories.
Public PoC/Exploit Available at Github
CVE-2025-71176 has a 17 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-71176.
| URL | Resource |
|---|---|
| https://github.com/pytest-dev/pytest/issues/13669 | |
| https://www.openwall.com/lists/oss-security/2026/01/21/5 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-71176 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-71176
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Dockerfile HTML TypeScript CSS Python Shell
Sample multi-service real-time trading platform on AWS — ECS Fargate, RDS PostgreSQL, ElastiCache Redis, and DynamoDB — used to demonstrate autonomous incident detection and investigation with AWS DevOps Agent.
Dockerfile HTML TypeScript CSS Python Shell
payment-processing-test
Dockerfile HTML TypeScript CSS Python Shell
Claim-processing
Shell JavaScript HTML TypeScript CSS Python Dockerfile
Sample multi-service payment processing app on AWS — ECS Fargate, Aurora PostgreSQL, and DynamoDB — used to demonstrate autonomous incident detection and investigation with AWS DevOps Agent.
Dockerfile HTML TypeScript CSS Python Shell
Sample multi-service insurance claims processing app on AWS — ECS Fargate, Aurora PostgreSQL, and Amazon Bedrock — used to demonstrate autonomous incident detection and investigation with AWS DevOps Agent.
amazon-bedrock aurora-postgresql aws aws-samples aws-workshops devops-agent ecs-fargate fault-injection incident-response microservices
Shell JavaScript HTML TypeScript CSS Python Dockerfile
None
Python
A DevSecOps demo project — REST API with a full security pipeline
Python Dockerfile
M&A Due Diligence automation — VDR document ingestion + Q-A with citation link back (PoC portfolio)
langgraph m-and-a pmi poc portfolio python rag
Python HTML
AI Trading Platform
PLpgSQL TypeScript Dockerfile Python Shell HTML CSS
A DevSecOps project with SAST, Trivy, pip-audit, Gitleaks, Checkov and pre-commit focus in a deployed project in AWS
bandit gitleaks trivy trivy-scan pip-audit pre-commit
An independent implementation of the OpenUSD (Universal Scene Description) file formats and core data model.
usd universal-scene
CMake Python C++ C Go Rust JavaScript TypeScript Shell D
Merge, deduplicate, and consensus-score SARIF output from multiple security scanners. One unified report instead of five overlapping ones.
Python
Python MCP server connecting Claude Desktop to Shopify Admin API — products, inventory, collections, discounts, and orders
Python
None
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-71176 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-71176 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-71176', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-01-22T12:26:25.446376Z'} -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'pytest', 'product': 'pytest', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'custom', 'lessThanOrEqual': '9.0.2'}], 'packageURL': 'pkg:pypi/pytest', 'defaultStatus': 'unknown'}] -
New CVE Received by [email protected]
Jan. 22, 2026
Action Type Old Value New Value 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. Added CVSS V3.1 AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L Added CWE CWE-379 Added Reference https://github.com/pytest-dev/pytest/issues/13669 Added Reference https://www.openwall.com/lists/oss-security/2026/01/21/5