CVE-2022-1664 json
directory traversal for in-place extracts with untrusted v2 and v3 source packages with debian.tar
published 4y ago modified 4mo ago also EUVD-2022-24950
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Debian dpkg 1.18.26, 1.19.8, 1.20.10, 1.21.8
- dpkg Debian 14, Debian 13, Debian 12 1.21.8
debian advisories DEBIAN-CVE-2022-1664
- dpkg Ubuntu 18.04 LTS 1.19.0.5ubuntu2.4
- dpkg Ubuntu 20.04 LTS 1.19.7ubuntu3.2
- dpkg Ubuntu 22.04 LTS 1.21.1ubuntu2.1
- dpkg Ubuntu Pro 16.04 LTS 1.18.4ubuntu1.7+esm1
ubuntu advisories UBUNTU-CVE-2022-1664
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- dpkg SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +20 more 1.19.0.4-150000.4.4.1
- update-alternatives SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +25 more 1.19.0.4-150000.4.4.1
- update-alternatives SLES for SAP 12 SP5, SLES 12 SP5 1.18.4-16.3.5
suse advisories SUSE-SU-2022:4081-1SUSE-SU-2022:2689-1
- dpkg Alpine 3.15, Alpine 3.14, Alpine 3.13 1.20.10-r0
- dpkg Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.21.8-r0
alpine advisories ALPINE-CVE-2022-1664
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7a6c03cb34d4a09f35df2f10779c… commit
- git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=58814cacee39c4ce9e2cd0e3a3b9… commit
- git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1f23dddc17f69c9598477098c7fb… commit
- git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=faa4c92debe45412bfcf8a44f26e… commit
Is CVE-2022-1664 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
3.24% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected products
- Debian dpkg
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
git.dpkg.org
/cgit/dpkg/dpkg.git/commit/?id=7a6c03cb34d4a09f35df2f10779cbf1b70a5200b
mailing-list, patch, vendor-advisory
-
git.dpkg.org
/cgit/dpkg/dpkg.git/commit/?id=58814cacee39c4ce9e2cd0e3a3b9b57ad437eff5
mailing-list, patch, vendor-advisory
-
git.dpkg.org
/cgit/dpkg/dpkg.git/commit/?id=1f23dddc17f69c9598477098c7fb9936e15fa495
mailing-list, patch, vendor-advisory
-
git.dpkg.org
/cgit/dpkg/dpkg.git/commit/?id=faa4c92debe45412bfcf8a44f26e827800bb24be
mailing-list, patch, vendor-advisory
-
lists.debian.org
/debian-security-announce/2022/msg00115.html
mailing-list, vendor-advisory
-
lists.debian.org
/debian-lts-announce/2022/05/msg00033.html
mailing-list, vendor-advisory
-
security.netapp.com
/advisory/ntap-20221007-0002/
third-party-advisory
Sources
- CVE List CVE-2022-1664
- NVD CVE-2022-1664
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.