CVEfocus › CVE database › CVE-2022-1664

CVE-2022-1664directory traversal for in-place extracts with untrusted v2 and v3 source packages with…

CVSS 9.8 CriticalEPSS 3.2% (higher than 89% of CVEs)Published 2022-05-26Updated 2024-09-17Assigner: debian

Dpkg::Source::Archive in dpkg, the Debian package management system, before version 1.21.8, 1.20.10, 1.19.8, 1.18.26 is prone to a directory traversal vulnerability. When extracting untrusted source packages in v2 and v3 source package formats that include a debian.tar, the in-place extraction can lead to directory traversal situations on specially crafted orig.tar and debian.tar tarballs.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04dpkgFixed1.21.1ubuntu2.1UBUNTU-CVE-2022-1664
Ubuntu 20.04dpkgFixed1.19.7ubuntu3.2UBUNTU-CVE-2022-1664
Ubuntu 18.04dpkgFixed1.19.0.5ubuntu2.4UBUNTU-CVE-2022-1664
Ubuntu 16.04dpkgFix pending1.18.4ubuntu1.7+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-1664
Ubuntu 14.04dpkgFix pendingUBUNTU-CVE-2022-1664
Debian 14dpkgFixed1.21.8DEBIAN-CVE-2022-1664
Debian 13dpkgFixed1.21.8DEBIAN-CVE-2022-1664
Debian 12dpkgFixed1.21.8DEBIAN-CVE-2022-1664
Alpine Linux 3.24dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.23dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.22dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.21dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.20dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.19dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.18dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.17dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.16dpkgFixed1.21.8-r0ALPINE-CVE-2022-1664
Alpine Linux 3.15dpkgFixed1.20.10-r0ALPINE-CVE-2022-1664
Alpine Linux 3.14dpkgFixed1.20.10-r0ALPINE-CVE-2022-1664
Alpine Linux 3.13dpkgFixed1.20.10-r0ALPINE-CVE-2022-1664

What the vendor says

As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.