CVE-2022-1664
directory traversal for in-place extracts with untrusted v2 and v3 source packages with debian.tar
Mitigation
- Upgrade dpkg to 1.21.8 or later.
Who should check
- Anyone running Debian dpkg >= 1.14.17, < 1.21.8
Vulnerability facts
- Affected
- Debian dpkg >= 1.14.17, < 1.21.8
- Fixed in
- Debian dpkg 1.21.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 2.20% chance of exploitation in 30 days (percentile 83, 2026-11-26)
- CWE
- CWE-22
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Debian dpkg | >= 1.14.17, < 1.21.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-1664. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-1664.md Affected: Debian dpkg >= 1.14.17, < 1.21.8 Fixed in: Debian dpkg 1.21.8 Steps: 1. Search this machine and project for Debian dpkg: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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
FAQ
Is CVE-2022-1664 being exploited?
There is no confirmed exploitation: CVE-2022-1664 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.20% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-1664?
Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2022-1664?
Debian dpkg >= 1.14.17, < 1.21.8.
Is there a fix for CVE-2022-1664?
Yes. Fixed in Debian dpkg 1.21.8. Upgrade dpkg to 1.21.8 or later.
How do I check if I'm affected by CVE-2022-1664?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.