CVE-2022-1664: directory traversal for in-place extracts with untrusted v2 and v3 source packages with debian.tar

Published May 26, 2022
·
Updated

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 Software

24 affected componentsFixes available
Debian Dpkg>=1.14.17<1.18.26
Debian Dpkg>=1.19.0<1.19.8
Debian Dpkg>=1.20.0<1.20.10
Debian Dpkg>=1.21.0<1.21.8
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp ONTAP Select Deploy administration utility
debian/dpkg<1.21.8
1.21.8
debian/dpkg<1.21.8
1.21.8
debian/dpkg<1.21.8
1.21.8
debian/dpkg
1.21.231.22.221.23.11
alpine/dpkg>=1.14.17<1.20.10-r0
1.20.10-r0
alpine/dpkg>=1.14.17<1.20.10-r0
1.20.10-r0
alpine/dpkg>=1.14.17<1.20.10-r0
1.20.10-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0
alpine/dpkg>=1.14.17<1.21.8-r0
1.21.8-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/dpkg to a version that resolves this vulnerability.

    Fixed in 1.21.23Fixed in 1.22.22Fixed in 1.23.11
  2. Upgrade

    Upgrade alpine/dpkg to a version that resolves this vulnerability.

    Fixed in 1.20.10-r0
  3. Upgrade

    Upgrade alpine/dpkg to a version that resolves this vulnerability.

    Fixed in 1.21.8-r0
  4. Upgrade

    Upgrade debian/dpkg to a version that resolves this vulnerability.

    Fixed in 1.21.8
  5. Upgrade

    Upgrade dpkg to a version that resolves this vulnerability.

    Fixed in 1.21.8

Event History

May 26, 2022
CVE Published
via MITRE·08:20 AM
Data Sourced
via MITRE·08:20 AM
DescriptionWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-1664?

CVE-2022-1664 is a directory traversal vulnerability in dpkg, the Debian package management system.

2

What is the severity of CVE-2022-1664?

CVE-2022-1664 has a severity rating of 9.8 (Critical).

3

Which versions of dpkg are affected by CVE-2022-1664?

Versions 1.14.17 to 1.21.8 of dpkg are affected by CVE-2022-1664.

4

How can I fix CVE-2022-1664?

To fix CVE-2022-1664, update dpkg to version 1.21.8, 1.20.10, 1.19.8, or 1.18.26.

5

Are there any references for CVE-2022-1664?

Yes, you can find references for CVE-2022-1664 [here](https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1f23dddc17f69c9598477098c7fb9936e15fa495), [here](https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=58814cacee39c4ce9e2cd0e3a3b9b57ad437eff5), and [here](https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7a6c03cb34d4a09f35df2f10779cbf1b70a5200b).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203