{"id":"UBUNTU-CVE-2022-1664","details":"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.","modified":"2026-04-22T13:09:10.250691Z","published":"2022-05-25T15:00:00Z","related":["USN-5446-1","USN-5446-2"],"upstream":["CVE-2022-1664"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-1664"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5446-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5446-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-1664"}],"affected":[{"package":{"name":"dpkg","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.17.5ubuntu5.8+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.12ubuntu1","1.17.1ubuntu1","1.17.5ubuntu1","1.17.5ubuntu2","1.17.5ubuntu3","1.17.5ubuntu4","1.17.5ubuntu5","1.17.5ubuntu5.1","1.17.5ubuntu5.2","1.17.5ubuntu5.3","1.17.5ubuntu5.4","1.17.5ubuntu5.5","1.17.5ubuntu5.6","1.17.5ubuntu5.7","1.17.5ubuntu5.8","1.17.5ubuntu5.8+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"dpkg","binary_version":"1.17.5ubuntu5.8+esm1"},{"binary_name":"dselect","binary_version":"1.17.5ubuntu5.8+esm1"},{"binary_name":"libdpkg-perl","binary_version":"1.17.5ubuntu5.8+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1664.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.18.4ubuntu1.7+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.18.4ubuntu1.7+esm1"}]}],"versions":["1.18.2ubuntu5","1.18.3ubuntu1","1.18.4ubuntu1","1.18.4ubuntu1.1","1.18.4ubuntu1.2","1.18.4ubuntu1.3","1.18.4ubuntu1.4","1.18.4ubuntu1.5","1.18.4ubuntu1.6","1.18.4ubuntu1.7"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"dpkg","binary_version":"1.18.4ubuntu1.7+esm1"},{"binary_name":"dselect","binary_version":"1.18.4ubuntu1.7+esm1"},{"binary_name":"libdpkg-perl","binary_version":"1.18.4ubuntu1.7+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1664.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.19.0.5ubuntu2.4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.0.5ubuntu2.4"}]}],"versions":["1.18.24ubuntu1","1.19.0.4ubuntu1","1.19.0.5ubuntu1","1.19.0.5ubuntu2","1.19.0.5ubuntu2.1","1.19.0.5ubuntu2.2","1.19.0.5ubuntu2.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dpkg","binary_version":"1.19.0.5ubuntu2.4"},{"binary_version":"1.19.0.5ubuntu2.4","binary_name":"dselect"},{"binary_name":"libdpkg-perl","binary_version":"1.19.0.5ubuntu2.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1664.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.19.7ubuntu3.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.7ubuntu3.2"}]}],"versions":["1.19.7ubuntu2","1.19.7ubuntu3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dpkg","binary_version":"1.19.7ubuntu3.2"},{"binary_name":"dselect","binary_version":"1.19.7ubuntu3.2"},{"binary_name":"libdpkg-perl","binary_version":"1.19.7ubuntu3.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1664.json"}},{"package":{"name":"dpkg","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dpkg@1.21.1ubuntu2.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.1ubuntu2.1"}]}],"versions":["1.20.9ubuntu2","1.20.9ubuntu3","1.21.1ubuntu1","1.21.1ubuntu2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dpkg","binary_version":"1.21.1ubuntu2.1"},{"binary_name":"dselect","binary_version":"1.21.1ubuntu2.1"},{"binary_name":"libdpkg-perl","binary_version":"1.21.1ubuntu2.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1664.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}