{"id":"UBUNTU-CVE-2025-71176","details":"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.","modified":"2026-05-20T16:11:29.960717115Z","published":"2026-01-22T05:16:00Z","upstream":["CVE-2025-71176"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-71176"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-71176"},{"type":"REPORT","url":"https://github.com/pytest-dev/pytest/issues/13669"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2026/01/21/5"}],"affected":[{"package":{"name":"pytest","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.2-2","2.7.3-1","2.8.7-4"],"ecosystem_specific":{"binaries":[{"binary_name":"python-pytest","binary_version":"2.8.7-4"},{"binary_name":"python3-pytest","binary_version":"2.8.7-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}},{"package":{"name":"pytest","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.3-1ubuntu1","3.2.1-2","3.2.5-1","3.2.5-2","3.2.5-2ubuntu1","3.3.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"pypy-pytest","binary_version":"3.3.2-2"},{"binary_version":"3.3.2-2","binary_name":"python-pytest"},{"binary_name":"python3-pytest","binary_version":"3.3.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}},{"package":{"name":"pytest","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10.1-2","4.6.6-1ubuntu4","4.6.8-1ubuntu1","4.6.9-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pypy-pytest","binary_version":"4.6.9-1"},{"binary_version":"4.6.9-1","binary_name":"python-pytest"},{"binary_name":"python3-pytest","binary_version":"4.6.9-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}},{"package":{"name":"pytest","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.2-2ubuntu1","6.2.5-1ubuntu1","6.2.5-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pytest","binary_version":"6.2.5-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}},{"package":{"name":"pytest","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.4.0-2","7.4.3-1","7.4.3-2","7.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pytest","binary_version":"7.4.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}},{"package":{"name":"pytest","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.3.5-1","8.3.5-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pytest","binary_version":"8.3.5-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}},{"package":{"name":"pytest","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pytest?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.3.5-2","8.4.2-1","9.0.2-2","9.0.2-4"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pytest","binary_version":"9.0.2-4"},{"binary_version":"0.15.0++9.0.2-4","binary_name":"python3-pytest-subtests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-71176.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}