{"answers":{"affected":"3 open source packages ship an affected version, including pytest.","exploited":"There is no known exploitation of CVE-2025-71176 in the wild and no public exploit code.","fix":"Upgrade pytest to 9.0.3 or later.","what":"CVE-2025-71176 is a medium-severity vulnerability in pytest, published on 22 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-71176 and fix it if it is affected.\n\nWhat it is: CVE-2025-71176 is a medium-severity vulnerability in pytest, published on 22 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-71176 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pytest (PyPI): affected all versions; fixed in 9.0.3\n- pytest (PyPI): affected all versions; fixed in 9.0.3\n- pytest (PyPI): affected all versions; fixed in 9.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-71176/ (Markdown: https://insights.sbomify.com/CVE-2025-71176/index.md)","id":"CVE-2025-71176","markdown":"https://insights.sbomify.com/CVE-2025-71176/index.md","name":"CVE-2025-71176","record":{"aliases":["AZL-75014","CLEANSTART-2026-IL46075","CLEANSTART-2026-MP75685","CLSA-2026-1778719541","CLSA-2026-1778719543","DEBIAN-CVE-2025-71176","ECHO-4376-7ab5-8946","GHSA-6w46-j5rx-g56g","MINI-v86x-vhgj-wvfx","PYSEC-2026-1845","RHSA-2026:8580","ROOT-APP-PYPI-CVE-2025-71176","SUSE-SU-2026:1744-1","SUSE-SU-2026:21568-1","UBUNTU-CVE-2025-71176","openSUSE-SU-2026:10666-1","openSUSE-SU-2026:20692-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["denial_of_service","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python testing framework","requires_auth":"none","summary":"Local attackers can exploit insecure temporary directory creation in pytest to cause denial of service or escalate privileges.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"}],"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.","ecosystems":["PyPI","Red Hat:hummingbird:1","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"pytest has vulnerable tmpdir handling","id":"CVE-2025-71176","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"LavaLite CMS \u003c= 10.1.0 Stored XSS via Package Creation and Search","id":"CVE-2025-71177"},"packages":[{"ecosystem":"PyPI","fixed":["9.0.3"],"introduced":["0"],"last_affected":[],"package":"pytest","purl":null,"source":"GHSA-6w46-j5rx-g56g"},{"ecosystem":"PyPI","fixed":["9.0.3"],"introduced":["0"],"last_affected":[],"package":"pytest","purl":"pkg:pypi/pytest","source":"GHSA-6w46-j5rx-g56g"},{"ecosystem":"PyPI","fixed":["9.0.3"],"introduced":["0"],"last_affected":[],"package":"pytest","purl":"pkg:pypi/pytest","source":"PYSEC-2026-1845"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:9.0.3-1.hum1"],"introduced":["0"],"last_affected":[],"package":"pytest","purl":"pkg:rpm/redhat/pytest","source":"RHSA-2026:8580"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:9.0.3-1.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-pytest","purl":"pkg:rpm/redhat/python3-pytest","source":"RHSA-2026:8580"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["9.0.3-1.1"],"introduced":["0"],"last_affected":[],"package":"python-pytest","purl":"pkg:rpm/opensuse/python-pytest\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10666-1"}],"prev":{"headline":"Typesetter CMS Reflected XSS via Move Message Handling","id":"CVE-2025-71166"},"products":["pytest"],"published":"2026-01-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-22","vendors":["pytest"]},"summary":"Local attackers can exploit insecure temporary directory creation in pytest to cause denial of service or escalate privileges.","url":"https://insights.sbomify.com/CVE-2025-71176/"}