Vulnerability · Published May 26, 2022 · Assigned by debian
CVE-2022-1664directory traversal for in-place extracts with untrusted v2 and v3 source packages with debian.tar
Critical 9.8
In plain English
A critical-severity security flaw in dpkg from Debian. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | dpkg | 1.21.8-r0 | ALPINE-CVE-2022-1664 |
| Alpine:v3.21 | dpkg | 1.21.8-r0 | ALPINE-CVE-2022-1664 |
| Alpine:v3.22 | dpkg | 1.21.8-r0 | ALPINE-CVE-2022-1664 |
| Alpine:v3.23 | dpkg | 1.21.8-r0 | ALPINE-CVE-2022-1664 |
| Alpine:v3.24 | dpkg | 1.21.8-r0 | ALPINE-CVE-2022-1664 |
| Debian:12 | dpkg | 1.21.8 | DEBIAN-CVE-2022-1664 |
| Debian:13 | dpkg | 1.21.8 | DEBIAN-CVE-2022-1664 |
| Debian:14 | dpkg | 1.21.8 | DEBIAN-CVE-2022-1664 |
| Ubuntu:22.04:LTS | dpkg | 1.21.1ubuntu2.1 | UBUNTU-CVE-2022-1664 |
| Ubuntu:22.04:LTS | dpkg | 1.21.1ubuntu2.1 | USN-5446-1 |
Affected products (as reported)
References
- https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7a6c03cb34d4a09f35df2f10779cbf1b70a5200b
- https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=58814cacee39c4ce9e2cd0e3a3b9b57ad437eff5
- https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1f23dddc17f69c9598477098c7fb9936e15fa495
- https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=faa4c92debe45412bfcf8a44f26e827800bb24be
- https://lists.debian.org/debian-security-announce/2022/msg00115.html
- https://lists.debian.org/debian-lts-announce/2022/05/msg00033.html
- https://security.netapp.com/advisory/ntap-20221007-0002/