{"id":"CVE-2025-6297","state":"PUBLISHED","title":"dpkg-deb: Fix cleanup for control member with restricted directories","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.","publishedAt":"2025-07-01T16:16:54.624Z","updatedAt":"2026-07-08T07:48:03.368Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","source":"CISA-ADP"},"assigner":"debian","products":["Debian dpkg"],"affected":[{"vendor":"Debian","product":"dpkg","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"ed6bbd445dd8800308c67236ba35d08004c98e82","versionType":"custom"}]}],"references":["https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ed6bbd445dd8800308c67236ba35d08004c98e82","https://lists.debian.org/debian-lts-announce/2026/07/msg00015.html"],"weaknesses":["CWE-732","CWE-400"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/6xxx/CVE-2025-6297.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-6297","state":"PUBLISHED","datePublished":"2025-07-01T16:16:54.624Z","dateUpdated":"2026-07-08T07:48:03.368Z","assignerShortName":"debian","assignerOrgId":"79363d38-fa19-49d1-9214-5f28da3f3ac5","dateReserved":"2025-06-19T07:40:18.350Z"},"containers":{"cna":{"title":"dpkg-deb: Fix cleanup for control member with restricted directories","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Debian","product":"dpkg","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"ed6bbd445dd8800308c67236ba35d08004c98e82","versionType":"custom"}]}],"references":[{"url":"https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ed6bbd445dd8800308c67236ba35d08004c98e82"}],"providerMetadata":{"shortName":"debian","orgId":"79363d38-fa19-49d1-9214-5f28da3f3ac5","dateUpdated":"2025-07-01T17:21:05.050Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.2,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-07-01T17:30:21.146019Z","id":"CVE-2025-6297","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-732","type":"CWE","lang":"en","description":"CWE-732 Incorrect Permission Assignment for Critical Resource"}]},{"descriptions":[{"cweId":"CWE-400","type":"CWE","lang":"en","description":"CWE-400 Uncontrolled Resource Consumption"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-01T17:30:37.332Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2026/07/msg00015.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-08T07:48:03.368Z"}}]}}}