{
  "id": "CVE-2025-6297",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-6297",
  "published_at": "2025-07-01T16:16:54.624Z",
  "title": "dpkg-deb: Fix cleanup for control member with restricted directories",
  "vendor": "Debian",
  "product": "dpkg",
  "cvss": {
    "score": 8.2,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-732",
  "cpes": [
    "cpe:2.3:a:debian:dpkg:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 8.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Debian",
        "product": "dpkg",
        "ranges": [
          "\u003c ed6bbd445dd8800308c67236ba35d08004c98e82"
        ],
        "fixed_in": [
          "ed6bbd445dd8800308c67236ba35d08004c98e82"
        ]
      }
    ],
    "upgrade": [
      "Upgrade dpkg to ed6bbd445dd8800308c67236ba35d08004c98e82 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ed6bbd445dd8800308c67236ba35d08004c98e82"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
