Red Hat VEX
RHVEX-CVE-2025-71176
pytest: pytest: Denial of Service or Privilege Escalation via insecure temporary directory handling
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | python3-pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:7 | pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python2-pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python38-pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python39-pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | python3-pytest | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | python3.12-pytest | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2025-71176
- https://bugzilla.redhat.com/show_bug.cgi?id=2431969
- https://www.cve.org/CVERecord?id=CVE-2025-71176
- https://nvd.nist.gov/vuln/detail/CVE-2025-71176
- https://github.com/pytest-dev/pytest/issues/13669
- https://www.openwall.com/lists/oss-security/2026/01/21/5