Advisory record · GHSA-6w46-j5rx-g56g

pytest has vulnerable tmpdir handling

CVSS 6.8 MediumEPSS 0.0015 · 4th percentile

Published by the GitHub Advisory Database at 22 Jan 2026, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pytestPyPI<9.0.39.0.3
Identifiers
GHSA-6w46-j5rx-g56g · CVE-2025-71176 · PYSEC-2026-1845
Weakness (CWE)
CWE-379
Published
22 Jan 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

pytest versions before 9.0.3 have vulnerable tmpdir handling on UNIX systems, where the directories it uses under the /tmp/pytest-of-{user} name pattern can be abused. A local user can exploit this to cause a denial of service or possibly gain privileges. Upgrade pytest to version 9.0.3 or later.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.8 Medium 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L CNA (mitre)
  • CISA KEV Not listed.
  • EPSS 0.0015, the 4th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.