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

CVE-2023-52168: 7-Zip NTFS Handler Buffer Overflow Flaw

CVE-2023-52168 is a heap-based buffer overflow in 7-Zip's NTFS handler that enables attackers to overwrite memory beyond allocated buffers. This article covers technical details, affected versions, and mitigation steps.

Published: February 11, 2026

CVE-2023-52168 Overview

CVE-2023-52168 is a heap-based buffer overflow vulnerability in the NTFS handler component (NtfsHandler.cpp) of 7-Zip, a widely-used file archiver utility. The vulnerability allows an attacker to overwrite two bytes at multiple offsets beyond the allocated buffer size, following a predictable pattern of buffer+512*i-2 for i=9, i=10, i=11, and subsequent values. This memory corruption vulnerability affects 7-Zip versions prior to 24.01 and could potentially be exploited to achieve arbitrary code execution or cause application crashes.

Critical Impact

This heap-based buffer overflow in 7-Zip's NTFS handler can allow attackers to corrupt heap memory with controlled two-byte overwrites at predictable offsets, potentially leading to code execution or denial of service when processing maliciously crafted NTFS images.

Affected Products

  • 7-Zip versions before 24.01
  • 7zz (7-Zip for Linux/Unix) versions before 24.01
  • Applications and systems utilizing vulnerable 7-Zip libraries for NTFS handling

Discovery Timeline

  • 2024-07-03 - CVE-2023-52168 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-52168

Vulnerability Analysis

The vulnerability resides in the NtfsHandler.cpp file, which is responsible for parsing and extracting content from NTFS file system images within 7-Zip archives. The flaw manifests as a CWE-122 (Heap-based Buffer Overflow) where improper boundary validation during NTFS record processing allows writes beyond the allocated buffer boundaries.

The overflow occurs in a loop construct where the handler processes NTFS data structures. At each iteration, two bytes are written at a calculated offset following the pattern buffer+512*i-2. When the loop counter i reaches values of 9 and beyond, these writes extend past the legitimate buffer allocation, corrupting adjacent heap memory. This predictable overflow pattern means an attacker can potentially craft input that overwrites specific heap metadata or adjacent objects.

The local attack vector requires a user to open or extract a maliciously crafted archive containing a specially constructed NTFS image. No user interaction beyond opening the file is required once the target engages with the malicious archive.

Root Cause

The root cause is insufficient boundary checking in the NTFS handler's parsing logic. When iterating through NTFS data records at 512-byte intervals, the code fails to verify that write operations at buffer+512*i-2 remain within the allocated buffer bounds. The offset calculation assumes a maximum number of iterations that doesn't account for maliciously crafted NTFS structures with excessive record counts, leading to heap corruption when processing oversized or malformed NTFS images.

Attack Vector

The attack requires local access, meaning an attacker must deliver a malicious archive file to the victim. This can be accomplished through various social engineering techniques such as email attachments, malicious downloads, or compromised file sharing services. When a user attempts to open, preview, or extract the contents of a maliciously crafted archive containing a specially constructed NTFS image using a vulnerable version of 7-Zip, the heap overflow is triggered.

The two-byte overwrites at predictable offsets could potentially be chained to:

  • Corrupt heap metadata, leading to arbitrary write primitives
  • Overwrite function pointers in adjacent heap objects
  • Cause denial of service through heap corruption crashes

For detailed technical analysis of this vulnerability, see the DFIR Analysis on 7-Zip Vulnerabilities and the SourceForge Bug Report #2402.

Detection Methods for CVE-2023-52168

Indicators of Compromise

  • Unexpected crashes in 7-Zip processes (7z.exe, 7zz, 7zFM.exe) when opening archive files
  • Archive files containing NTFS images with anomalously large or malformed record structures
  • Heap corruption error messages or segmentation faults during archive extraction
  • Suspicious archive files received via email or downloaded from untrusted sources

Detection Strategies

  • Monitor for 7-Zip process crashes or abnormal terminations that may indicate exploitation attempts
  • Implement file scanning rules to detect archives containing potentially malicious NTFS images with oversized structures
  • Deploy endpoint detection solutions capable of identifying heap corruption attack patterns
  • Use application allow-listing to prevent unauthorized archive utilities from executing

Monitoring Recommendations

  • Enable detailed logging for 7-Zip operations and monitor for extraction failures
  • Track software inventory to identify systems running vulnerable 7-Zip versions (prior to 24.01)
  • Configure security information and event management (SIEM) to alert on repeated 7-Zip crashes
  • Monitor network traffic for archive files from untrusted external sources

How to Mitigate CVE-2023-52168

Immediate Actions Required

  • Upgrade 7-Zip to version 24.01 or later immediately across all systems
  • Implement endpoint protection to detect and block exploitation attempts targeting this vulnerability
  • Restrict archive extraction permissions to trusted sources and sandboxed environments
  • Educate users about the risks of opening archives from unknown or untrusted sources

Patch Information

The vulnerability has been addressed in 7-Zip version 24.01. Users should download the latest version from the official 7-Zip website or through trusted package managers. For systems using 7-Zip libraries, ensure all dependent applications are updated to use the patched library version.

Additional vendor advisory information is available from NetApp Security Advisory NTAP-20241122-0011 for affected NetApp products.

Workarounds

  • Avoid opening NTFS images or archives containing NTFS file systems from untrusted sources until patched
  • Use alternative archive utilities that do not have this vulnerability for processing NTFS images
  • Implement sandboxing solutions to isolate 7-Zip operations from critical system components
  • Configure email gateways to scan or quarantine archive attachments containing NTFS images
bash
# Check current 7-Zip version and upgrade if necessary
# On Windows (PowerShell)
# Get-Command 7z.exe | Select-Object -ExpandProperty Version

# On Linux, check 7zz version
7zz --help | head -n 3

# Update via package manager (example for Debian/Ubuntu)
# sudo apt update && sudo apt install 7zip

# Verify version is 24.01 or later after update

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/Tech7 Zip

  • SeverityHIGH

  • CVSS Score8.4

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • Openwall Security Discussion

  • DFIR Analysis on 7-Zip Vulnerabilities

  • SourceForge Bug Report #2402

  • Openwall Security Discussion Duplicate

  • NetApp Security Advisory NTAP-20241122-0011
  • Related CVEs
  • CVE-2023-31102: 7-Zip Buffer Overflow Vulnerability

  • CVE-2025-11002: 7-Zip Directory Traversal RCE Vulnerability

  • CVE-2025-11001: 7-Zip Directory Traversal RCE Vulnerability

  • CVE-2025-53817: 7-Zip Compound Handler DoS 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