# CVE-2025-71176: pytest has vulnerable tmpdir handling

- Severity: Medium 6.8 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-01-22T04:59:17.273Z
- Modified: 2026-09-10T03:50:32.768Z
- Also known as: GHSA-6w46-j5rx-g56g, PYSEC-2026-1845
- Weaknesses: CWE-379
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- pytest pytest: up to 9.0.2
- pytest (PyPI): before 9.0.3

## Every score

- mitre: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`

## References

- <https://github.com/pytest-dev/pytest/issues/13669> (web)
- <https://www.openwall.com/lists/oss-security/2026/01/21/5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71176> (advisory)
- <https://github.com/pytest-dev/pytest/pull/14343> (web)
- <https://github.com/pytest-dev/pytest/commit/95d8423bd24992deea5b9df32555fa1741679e2c> (web)
- <https://github.com/pytest-dev/pytes> (package)
- <https://github.com/pytest-dev/pytest/releases/tag/9.0.3> (web)
- <https://pypi.org/project/pytest> (package)
- <https://github.com/advisories/GHSA-6w46-j5rx-g56g> (advisory)

## Sources

- CVE List: [CVE-2025-71176](https://www.cve.org/CVERecord?id=CVE-2025-71176), CVE Terms of Use, modified 2026-01-22
- GitHub Advisory Database: [GHSA-6w46-j5rx-g56g](https://github.com/advisories/GHSA-6w46-j5rx-g56g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-71176](https://nvd.nist.gov/vuln/detail/CVE-2025-71176), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1845](https://osv.dev/vulnerability/PYSEC-2026-1845), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-71176 · Whole record: https://cve.day/CVE-2025-71176.json · Rebuilt by cve.day 2026-11-25T22:59:10.755Z
