Skip to content

dpkg

dpkg-deb: Fix cleanup for control member with restricted directories

CVE-2025-6297Published 1 Jul 2025, 16:16 UTC

Real-world risk

6.8/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

8.2

scored by CISA, CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from debian)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
dpkgNiche< ed6bbd445dd8800308c67236ba35d08004c98e82ed6bbd445dd8800308c67236ba35d08004c98e82

What to do

Update to a fixed version: ed6bbd445dd8800308c67236ba35d08004c98e82.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 1 × threat 0.856.800
  4. Rounded to one decimal between 0.1 and 106.8

How the score works

Exploitation and evidence timeline

  1. 1 Jul 2025 Published
  2. 3 Dec 2026 Risk 6.8 (cvss fallback)

Weakness

CWE-400, CWE-732

References

Get alerts for dpkg

Free email or text alerts when a vulnerability in dpkg reaches risk 8 or higher. Nothing else.