A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-40481

CVE-2023-40481: 7-Zip SquashFS RCE Vulnerability

CVE-2023-40481 is a remote code execution vulnerability in 7-Zip affecting SquashFS file parsing. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, affected versions, and mitigations.

Published: January 28, 2026

CVE-2023-40481 Overview

CVE-2023-40481 is a critical out-of-bounds write vulnerability affecting 7-Zip's SquashFS file parsing functionality. This vulnerability allows remote attackers to execute arbitrary code on affected installations of 7-Zip. User interaction is required to exploit this vulnerability, specifically the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of SQFS files. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. This vulnerability was tracked as ZDI-CAN-18589 by the Zero Day Initiative.

Critical Impact

Successful exploitation enables remote code execution in the context of the current process, potentially allowing attackers to gain full control over affected systems through crafted SquashFS archive files.

Affected Products

  • 7-Zip version 22.01
  • 7-Zip installations processing SquashFS (SQFS) files
  • Systems where users may open untrusted archive files

Discovery Timeline

  • 2024-05-03 - CVE-2023-40481 published to NVD
  • 2025-08-12 - Last updated in NVD database

Technical Details for CVE-2023-40481

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-Bounds Write), a memory corruption flaw that occurs when software writes data past the end of an allocated memory buffer. In the context of 7-Zip, this flaw manifests during the parsing of SquashFS archive files, which are commonly used in Linux distributions for read-only compressed filesystems.

The vulnerability requires local access, meaning an attacker must convince a user to open a malicious file or visit a webpage containing a crafted SquashFS archive. Once triggered, the out-of-bounds write can corrupt adjacent memory, potentially allowing the attacker to hijack control flow and execute arbitrary code with the privileges of the 7-Zip process.

Root Cause

The root cause of CVE-2023-40481 lies in insufficient validation of user-supplied data within the SQFS file parsing routines. When 7-Zip processes a SquashFS archive, it reads metadata and data structures from the file without adequately verifying that the sizes and offsets specified in the file are within expected bounds. This allows a specially crafted archive to trigger a write operation that exceeds the boundaries of an allocated buffer.

The lack of boundary checking in the parsing code creates an exploitable condition where malformed SQFS headers or data blocks can cause memory corruption beyond the intended storage region.

Attack Vector

The attack vector for this vulnerability requires user interaction. An attacker would typically:

  1. Craft a malicious SquashFS archive file with manipulated metadata designed to trigger the out-of-bounds write condition
  2. Distribute the malicious file through phishing emails, compromised websites, or other social engineering techniques
  3. Convince the victim to open the file using 7-Zip, either by double-clicking or extracting through the application
  4. Upon parsing the malformed SQFS data, the buffer overflow occurs, allowing code execution in the context of the current user

The vulnerability can be delivered through web-based attacks where a user visits a malicious page that prompts download and opening of the crafted archive. For technical details on the exploitation mechanism, refer to the Zero Day Initiative Advisory ZDI-23-1164.

Detection Methods for CVE-2023-40481

Indicators of Compromise

  • Unexpected crashes or abnormal behavior in 7-Zip processes when handling .sqfs or SquashFS archives
  • Memory access violations or segmentation faults in 7-Zip application logs
  • Suspicious SquashFS files with malformed headers or unusually large metadata values
  • Child processes spawned by 7-Zip that execute unexpected commands or binaries

Detection Strategies

  • Monitor for abnormal 7-Zip process behavior including unexpected memory consumption or process crashes
  • Implement endpoint detection rules to identify 7-Zip processes spawning suspicious child processes
  • Deploy file integrity monitoring on critical systems to detect unauthorized modifications following exploitation
  • Use application whitelisting to prevent execution of unauthorized code from compromised 7-Zip processes

Monitoring Recommendations

  • Enable detailed application logging for 7-Zip and archive handling operations
  • Configure endpoint protection to alert on memory corruption attempts and out-of-bounds write detections
  • Monitor network traffic for downloads of suspicious .sqfs files from untrusted sources
  • Implement user behavior analytics to detect unusual file handling patterns

How to Mitigate CVE-2023-40481

Immediate Actions Required

  • Update 7-Zip to the latest available version that addresses this vulnerability
  • Educate users about the risks of opening archive files from untrusted sources
  • Consider blocking or quarantining SquashFS files at email gateways and web proxies until patching is complete
  • Review and restrict which users have 7-Zip installed if not operationally required

Patch Information

7-Zip users should upgrade to a version released after the vulnerability was disclosed. Consult the SourceForge Discussion Thread for official vendor communications regarding patches and updates. The Zero Day Initiative Advisory ZDI-23-1164 provides additional technical details and coordinated disclosure information.

Workarounds

  • Avoid opening SquashFS archive files from untrusted or unknown sources
  • Use alternative archive utilities that are not affected by this vulnerability for handling SQFS files
  • Implement application sandboxing or containerization to limit the impact of potential exploitation
  • Configure endpoint protection policies to scan and quarantine archive files before user access
bash
# Verify installed 7-Zip version on Windows
# Open Command Prompt and run:
"C:\Program Files\7-Zip\7z.exe" --help | findstr "7-Zip"

# On Linux, check version with:
7z --help | head -2

# Consider using package manager to update:
# Debian/Ubuntu: sudo apt update && sudo apt upgrade p7zip-full
# Windows: Download latest from https://www.7-zip.org/

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/Tech7 Zip

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability3.48%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • SourceForge Discussion Thread

  • Zero Day Initiative Advisory ZDI-23-1164
  • Related CVEs
  • CVE-2025-53816

  • CVE-2025-0411

  • CVE-2024-11612

  • CVE-2024-11477

  • CVE-2023-31102
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
  • English
  • 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