{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-6297 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2025-6297 is a high-severity denial of service vulnerability in Debian dpkg, published on 1 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-6297 and fix it if it is affected.\n\nWhat it is: CVE-2025-6297 is a high-severity denial of service vulnerability in Debian dpkg, published on 1 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-6297 in the wild and no public exploit code.\n\nAffected product: Debian dpkg. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-6297/ (Markdown: https://insights.sbomify.com/CVE-2025-6297/index.md)","id":"CVE-2025-6297","markdown":"https://insights.sbomify.com/CVE-2025-6297/index.md","name":"CVE-2025-6297","record":{"aliases":["AZL-64641","CLSA-2025-1760024944","CLSA-2025-1764321086","DEBIAN-CVE-2025-6297","ECHO-9dc0-d8d0-3783","GHSA-w56q-6jw5-h5xf","MGASA-2025-0204","SUSE-SU-2025:02734-1","SUSE-SU-2025:20562-1","SUSE-SU-2025:20670-1","UBUNTU-CVE-2025-6297","USN-7768-1","openSUSE-SU-2025:15314-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Debian package manager","requires_auth":"none","summary":"Attackers can cause disk exhaustion and denial of service by exploiting improper cleanup of temporary files during dpkg-deb extraction of malicious packages.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"debian","cpe":[{"product":"dpkg","vendor":"debian"}],"cvss":{"score":8.2,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is\ndocumented as being a safe operation even on untrusted data. This may result in leaving temporary files behind on cleanup. Given automated and repeated execution of dpkg-deb commands on\nadversarial .deb packages or with well compressible files, placed\ninside a directory with permissions not allowing removal by a non-root\nuser, this can end up in a DoS scenario due to causing disk quota\nexhaustion or disk full conditions.","ecosystems":["SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP7","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","openSUSE:Leap 15.6","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":"dpkg-deb: Fix cleanup for control member with restricted directories","id":"CVE-2025-6297","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":14,"n_references":1,"next":{"headline":"Privilege escalation in AXIS OS","id":"CVE-2025-6298"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP6","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"dpkg","purl":"pkg:rpm/suse/dpkg\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP7","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"dpkg","purl":"pkg:rpm/suse/dpkg\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP7","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"SUSE:Linux Micro 6.0","fixed":["1.22.0-2.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Micro%206.0","source":"SUSE-SU-2025:20562-1"},{"ecosystem":"SUSE:Linux Micro 6.1","fixed":["1.22.0-slfo.1.1_2.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/suse/update-alternatives\u0026distro=SUSE%20Linux%20Micro%206.1","source":"SUSE-SU-2025:20670-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"dpkg","purl":"pkg:rpm/opensuse/dpkg\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.19.0.4-150000.4.7.1"],"introduced":["0"],"last_affected":[],"package":"update-alternatives","purl":"pkg:rpm/opensuse/update-alternatives\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02734-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.22.21-1.1"],"introduced":["0"],"last_affected":[],"package":"dpkg","purl":"pkg:rpm/opensuse/dpkg\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15314-1"}],"prev":{"headline":"code-projects Hostel Management System empty_rooms.php sql injection","id":"CVE-2025-6296"},"products":["dpkg"],"published":"2025-07-01","related":[{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2017-8283","kev_date_added":null,"published":"2017-04-26"},{"cvss_score":7.5,"headline":"Denial of service in dpkg","id":"CVE-2026-2219","kev_date_added":null,"published":"2026-03-07"},{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-2004-2768","kev_date_added":null,"published":"2010-06-08"},{"cvss_score":7.1,"headline":"Path traversal in n/a","id":"CVE-2014-3127","kev_date_added":null,"published":"2014-05-14"},{"cvss_score":6.8,"headline":"Memory corruption in n/a","id":"CVE-2014-8625","kev_date_added":null,"published":"2015-01-20"},{"cvss_score":6.8,"headline":"Path traversal in n/a","id":"CVE-2010-1679","kev_date_added":null,"published":"2011-01-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-08","vendors":["Debian"]},"summary":"Attackers can cause disk exhaustion and denial of service by exploiting improper cleanup of temporary files during dpkg-deb extraction of malicious packages.","url":"https://insights.sbomify.com/CVE-2025-6297/"}