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
    • 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-2023-7216

CVE-2023-7216: GNU Cpio Path Traversal Vulnerability

CVE-2023-7216 is a path traversal vulnerability in GNU Cpio that allows attackers to write files to arbitrary directories via symlinks. This article covers technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-7216 Overview

A path traversal vulnerability was found in the CPIO utility. This issue could allow a remote unauthenticated attacker to trick a user into opening a specially crafted archive. During the extraction process, the archiver could follow symlinks outside of the intended directory, which allows files to be written in arbitrary directories through symlinks.

Critical Impact

Attackers can write arbitrary files to system directories by exploiting symlink following during CPIO archive extraction, potentially leading to system compromise or data manipulation.

Affected Products

  • GNU CPIO (all versions)
  • Red Hat Enterprise Linux 7.0
  • Red Hat Enterprise Linux 8.0
  • Red Hat Enterprise Linux 9.0

Discovery Timeline

  • 2024-02-05 - CVE CVE-2023-7216 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-7216

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The CPIO utility fails to properly validate symbolic links within archive files during the extraction process. When a user extracts a maliciously crafted CPIO archive, the utility blindly follows symlinks contained within the archive without verifying whether those symlinks point to locations outside the intended extraction directory.

The attack requires local access and user interaction—specifically, the victim must be tricked into extracting a specially crafted archive file. While this increases the barrier to exploitation, the impact can be significant as it allows arbitrary file writes to any location accessible by the user running the CPIO command.

Root Cause

The root cause stems from insufficient validation of symlink targets during archive extraction. The CPIO utility processes symlinks contained in archive files without checking whether the resolved path escapes the intended extraction directory. This allows an attacker to craft an archive containing a symlink pointing to a sensitive system location (such as /etc/passwd or user configuration files), followed by a file that gets written through that symlink.

Attack Vector

The attack requires the following conditions to be successful:

  1. An attacker creates a malicious CPIO archive containing a symlink that points outside the extraction directory (e.g., ../../../etc/cron.d/)
  2. The archive also contains a file that will be written through this symlink
  3. The victim downloads or receives this malicious archive
  4. The victim extracts the archive using the cpio command
  5. Due to improper path validation, the file is written to the attacker-controlled location outside the intended directory

This type of symlink-following vulnerability during extraction is often referred to as a "Zip Slip" variant attack, adapted to the CPIO archive format. The attacker can potentially overwrite configuration files, inject malicious scripts into startup directories, or manipulate application data.

Detection Methods for CVE-2023-7216

Indicators of Compromise

  • Unexpected files appearing in system directories after CPIO archive extraction operations
  • Symlinks within extracted archives pointing to locations outside the extraction directory
  • Modified system configuration files that coincide with CPIO extraction activity
  • Suspicious CPIO archives received from untrusted sources containing symlinks

Detection Strategies

  • Monitor cpio command execution with arguments that indicate extraction operations (-i, --extract)
  • Implement file integrity monitoring on critical system directories to detect unauthorized modifications
  • Use archive scanning tools to inspect CPIO files for suspicious symlinks before extraction
  • Configure audit logging to track file creation events in sensitive directories

Monitoring Recommendations

  • Enable system auditing for the cpio binary execution using auditd rules
  • Monitor for symlink creation in temporary directories followed by file writes to system paths
  • Implement centralized logging for all archive extraction operations across enterprise systems
  • Set up alerts for any modifications to critical configuration files in /etc/ and user home directories

How to Mitigate CVE-2023-7216

Immediate Actions Required

  • Avoid extracting CPIO archives from untrusted or unknown sources
  • Use the --no-absolute-filenames option when extracting CPIO archives to prevent absolute path extraction
  • Extract archives in isolated environments or containers when dealing with untrusted content
  • Review and apply vendor patches when available from Red Hat and GNU

Patch Information

Organizations running affected versions should consult the Red Hat CVE-2023-7216 Advisory for official patch information and updates. Additional technical details and tracking information can be found in Red Hat Bugzilla Report #2249901.

Administrators should subscribe to security announcement mailing lists for Red Hat Enterprise Linux and GNU CPIO to receive timely notifications of security updates.

Workarounds

  • Use alternative archive extraction tools that implement proper symlink validation (e.g., bsdcpio with safe extraction modes)
  • Implement a pre-extraction validation script that scans CPIO archives for suspicious symlinks before extraction
  • Run CPIO extraction operations in a sandboxed environment using tools like firejail or container isolation
  • Configure file system permissions to restrict write access to sensitive directories for non-privileged users
bash
# Safe extraction practices for CPIO archives
# Extract to a dedicated directory with restricted permissions
mkdir -p /tmp/cpio-extract-$(date +%s)
cd /tmp/cpio-extract-*

# Use --no-absolute-filenames to prevent absolute path extraction
cpio -idv --no-absolute-filenames < archive.cpio

# Verify extracted contents before moving to intended location
find . -type l -exec ls -la {} \;

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGnu Cpio

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • Red Hat CVE-2023-7216 Advisory

  • Red Hat Bugzilla Report #2249901
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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