The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-1664

CVE-2022-1664: Debian Dpkg Path Traversal Vulnerability

CVE-2022-1664 is a path traversal vulnerability in Debian Dpkg that allows directory traversal during extraction of untrusted source packages. This post explains its impact, affected versions, and mitigation steps.

Published: February 17, 2026

CVE-2022-1664 Overview

CVE-2022-1664 is a directory traversal vulnerability affecting Dpkg::Source::Archive in dpkg, the Debian package management system. The vulnerability exists in versions prior to 1.21.8, 1.20.10, 1.19.8, and 1.18.26. 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.

This vulnerability allows attackers to write arbitrary files outside the intended extraction directory, potentially leading to full system compromise through file overwrite attacks.

Critical Impact

Attackers can exploit this directory traversal flaw to write malicious files to arbitrary locations on the filesystem during package extraction, potentially leading to remote code execution or complete system compromise.

Affected Products

  • Debian dpkg (versions prior to 1.21.8, 1.20.10, 1.19.8, 1.18.26)
  • Debian Linux 9.0, 10.0, 11.0
  • NetApp ONTAP Select Deploy Administration Utility

Discovery Timeline

  • 2022-05-26 - CVE-2022-1664 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-1664

Vulnerability Analysis

The vulnerability resides in the Dpkg::Source::Archive module, which handles the extraction of Debian source packages. When processing v2 and v3 format source packages, the module extracts tarball archives including orig.tar and debian.tar files. The extraction routine fails to properly sanitize file paths within these archives, allowing specially crafted tarballs to include path traversal sequences (such as ../) that escape the intended extraction directory.

This is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path or directory traversal. The vulnerability is exploitable over the network without authentication or user interaction, making it particularly dangerous in environments where source packages are automatically processed from untrusted sources.

Root Cause

The root cause is insufficient validation of file paths during tarball extraction in the Dpkg::Source::Archive module. The in-place extraction mechanism does not properly sanitize or reject archive entries containing directory traversal sequences. When a malicious tarball contains entries with paths like ../../etc/cron.d/malicious, the extraction process follows these paths literally, writing files outside the intended destination directory.

Attack Vector

The attack vector leverages the network-accessible nature of package repositories and build systems. An attacker can craft a malicious Debian source package containing specially constructed orig.tar or debian.tar archives with directory traversal sequences in their file paths.

The attack scenario typically involves:

  1. Creating a malicious source package with crafted tarball entries containing ../ sequences
  2. Distributing the package through compromised or untrusted repositories
  3. Waiting for a victim system to extract the source package using dpkg-source
  4. Upon extraction, files are written to arbitrary locations on the filesystem

The vulnerability is particularly concerning for build servers, continuous integration systems, and any automated package building infrastructure that processes untrusted source packages.

Detection Methods for CVE-2022-1664

Indicators of Compromise

  • Unexpected files appearing in system directories after source package extraction operations
  • Modified system configuration files or cron jobs following dpkg-source operations
  • Tarball archives in processed packages containing ../ path sequences
  • File system events showing writes to locations outside expected extraction directories

Detection Strategies

  • Monitor dpkg-source extraction operations for file writes outside expected directories
  • Implement file integrity monitoring on critical system directories during package operations
  • Scan incoming source packages for tarball entries containing path traversal sequences
  • Review dpkg and apt logs for unusual extraction patterns or errors

Monitoring Recommendations

  • Enable audit logging for file system operations during package management activities
  • Configure alerts for modifications to sensitive directories like /etc/, /usr/bin/, and /var/spool/cron/
  • Implement network monitoring to detect downloads of source packages from untrusted repositories
  • Deploy endpoint detection to identify post-exploitation activities following successful directory traversal

How to Mitigate CVE-2022-1664

Immediate Actions Required

  • Update dpkg to a patched version: 1.21.8 or later, 1.20.10 or later, 1.19.8 or later, or 1.18.26 or later depending on your distribution branch
  • Avoid extracting source packages from untrusted sources until patched
  • Review and audit any source packages processed since the system was deployed
  • Implement additional access controls on systems that process source packages automatically

Patch Information

Debian has released security patches addressing this vulnerability. The fixes are documented in multiple commits to the dpkg repository:

  • DPKG Commit Update
  • DPKG Commit Fix
  • DPKG Commit Change
  • DPKG Commit Revision

For detailed guidance, refer to the official security announcements:

  • Debian LTS Announcement
  • Debian Security Announcement

NetApp customers should review the NetApp Security Advisory for guidance on affected ONTAP Select Deploy Administration Utility deployments.

Workarounds

  • Restrict source package extraction to isolated environments or containers with limited filesystem access
  • Implement mandatory review processes for source packages before extraction on production systems
  • Use chroot or namespace isolation when running dpkg-source on untrusted packages
  • Consider using file system sandboxing tools to restrict extraction operations to specific directories
bash
# Verify dpkg version to ensure patched version is installed
dpkg --version

# Update dpkg on Debian/Ubuntu systems
sudo apt update && sudo apt upgrade dpkg

# Check for vulnerable versions across systems
dpkg-query -W -f='${Package} ${Version}\n' dpkg

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechDebian

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • NetApp Security Advisory
  • Vendor Resources
  • DPKG Commit Update

  • DPKG Commit Fix

  • DPKG Commit Change

  • DPKG Commit Revision

  • Debian LTS Announcement

  • Debian Security Announcement
  • Related CVEs
  • CVE-2022-48174: Debian Linux Buffer Overflow Vulnerability

  • CVE-2025-6297: Debian Dpkg DOS Vulnerability

  • CVE-2025-8454: Debian Devscripts Information Disclosure

  • CVE-2023-26604: systemd Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English