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.
Exploitability
AV:LAC:LPR:NUI:NScope
S:CImpact
C:LI:LA:L6.8/CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:LOther