Skip to main content
CVE-2025-6297VulnerabilityPublished Updated

It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is documented as being a safe operation even on untrusted data

Affects dpkgSource GCVE Database

0
Compare
Authoritative record:CVE-2025-6297· High 8.2

Not known to be exploited · CVSS 8.2 High · fixed in 1.21.1ubuntu2.6 : patch dpkg soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.21.1ubuntu2.6, 1.22.6ubuntu6.5, 1.22.21ubuntu1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu dpkg to 1.21.1ubuntu2.6 (package) or 1.22.6ubuntu6.5 (package) or 1.22.21ubuntu1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 25.10dpkgpkg:deb/ubuntu/dpkg?arch=source&distro=questingOther threatsAffected
  • <1.22.21ubuntu1
Fixed in
  • 1.22.21ubuntu1
Ubuntu 24.04 LTSdpkgpkg:deb/ubuntu/dpkg?arch=source&distro=nobleOther threatsAffected
  • <1.22.6ubuntu6.5
Fixed in
  • 1.22.6ubuntu6.5
Ubuntu 22.04 LTSdpkgpkg:deb/ubuntu/dpkg?arch=source&distro=jammyOther threatsAffected
  • <1.21.1ubuntu2.6
Fixed in
  • 1.21.1ubuntu2.6
Ubuntu 20.04 LTSdpkgpkg:deb/ubuntu/dpkg?arch=source&distro=focalOther threatsAffected
  • =1.19.7ubuntu2
  • =1.19.7ubuntu3
  • =1.19.7ubuntu3.2
Fixed in–
Ubuntu 18.04 LTSdpkgpkg:deb/ubuntu/dpkg?arch=source&distro=bionicOther threatsAffected
  • 1.18.24ubuntu1 – 1.19.0.5ubuntu2.4
8 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSdpkgpkg:deb/ubuntu/dpkg?arch=source&distro=esm-infra/xenialOther threatsAffected
  • 1.18.2ubuntu5 – 1.18.4ubuntu1.7+esm1
11 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

It was discovered that dpkg-deb does not properly sanitize directory permissions when extracting a control member into a temporary directory, which is documented 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 adversarial .deb packages or with well compressible files, placed inside a directory with permissions not allowing removal by a non-root user, this can end up in a DoS scenario due to causing disk quota exhaustion or disk full conditions.

References

Community reviews

Loading reviews…