CVE-2025-71176: Locust · pytest has vulnerable tmpdir handling
Affects locustSource GCVE Database
Not known to be exploited · CVSS 6.8 Medium : upgrade to 2.43.4_1 when convenient.
Data as of 4 Dec 2026, 18:36 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.43.4_1, 9.0.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade locust to 2.43.4_1; pytest to 9.0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewlocustpkg:brew/locustOther threats | Affected
| Fixed in
|
PyPIpytestpkg:pypi/pytestOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Locust version 2.43.4_1 that addresses this vulnerability. Users should upgrade to version 2.43.4_1 or later to remediate the issue.
Description
CVE-2025-71176 is a vulnerability in pytest versions through 9.0.2 on UNIX systems where the use of predictable temporary directories named /tmp/pytest-of-{user} can allow local users to cause denial of service or potentially escalate privileges. This affects Locust versions from 2.40.0 up to but not including 2.43.4_1. The vulnerability has a medium severity with a CVSS score of 6.8.
References
- nvd.nist.gov/vuln/detail/CVE-2025-71176 (opens in a new tab)
- github.com/pytest-dev/pytest/issues/13669 (opens in a new tab)
- github.com/pytest-dev/pytest/pull/14343 (opens in a new tab)
- github.com/pytest-dev/pytest/commit/95d8423bd24992deea5b9df32555fa1741679e2c (opens in a new tab)
- github.com/pytest-dev/pytes (opens in a new tab)
- github.com/pytest-dev/pytest/releases/tag/9.0.3 (opens in a new tab)
- openwall.com/lists/oss-security/2026/01/21/5 (opens in a new tab)