Cloudanix VulnDB

CVE-2023-52169

High · 8.2

CVSS

8.2

EPSS

1.0%

Published

Jul 3, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in 7-Zip lets attackers who upload specially made files cause the program to read extra data or crash when it tries to list files inside them, which can affect websites that automatically unpack user uploads.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Exposure
Component
Application
Class
Information Disclosure
Remediation
Upgrade
Effort
Low
Patch risk
Low

What it actually does

Out-of-bounds read in the NTFS handler allows an attacker-controlled buffer to be read past its intended length, with the extra bytes surfaced directly in extracted filenames.

Why it matters to the business

Server-side archive extraction services that accept untrusted uploads can leak limited file-system metadata or experience denial-of-service crashes, increasing operational risk and potential data exposure for any organization processing user-supplied archives.

How an attack unfolds

An attacker crafts a malicious NTFS file-system image that triggers the out-of-bounds read inside NtfsHandler.cpp, uploads it to a web service that extracts archives with an affected 7-Zip binary, and observes either the leaked filename bytes or a crash in the extraction process.

How to fix it

Upgrade 7-Zip (including 7zz) to version 24.01 or later on all systems that perform archive extraction, especially any server-side or automated processing pipelines.

How to confirm the fix worked

Confirm the installed 7-Zip binary reports version 24.01 or newer; re-test extraction of known-malicious test cases and verify that no out-of-bounds filename data appears and the process remains stable.

Typical attack path

  1. Craft NTFS image containing oversized or malformed directory entries
  2. Upload the image to a service that invokes 7-Zip server-side
  3. Trigger extraction of the archive
  4. Observe leaked filename fragments or service crash

How to detect it

Review 7-Zip process logs and extraction service logs for crashes or unusually long or malformed filenames; correlate with upload timestamps from untrusted sources.

What your security team should do

  • Immediately inventory all deployments of 7-Zip and prioritize upgrade to 24.01+ on any internet-facing or multi-tenant extraction service
  • Add 7-Zip version checks to CI/CD and container base-image scans
  • Monitor extraction services for unexpected crashes or unusually long filenames after upgrade

The record

The NtfsHandler.cpp NTFS handler in 7-Zip before 24.01 (for 7zz) contains an out-of-bounds read that allows an attacker to read beyond the intended buffer. The bytes read beyond the intended buffer are presented as a part of a filename listed in the file system image. This has security relevance in some known web-service use cases where untrusted users can upload files and have them extracted by a server-side 7-Zip process.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 p7zip 0 No fix
Debian:12 7zip 0 No fix
Debian:12 p7zip 0 No fix
Debian:13 7zip 0 24.05+dfsg-1
Debian:13 p7zip 0 16.02+transitional.1
Debian:14 7zip 0 24.05+dfsg-1
SUSE:Enterprise Storage 7.1 p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Server 12 SP5 p7zip 0 9.20.1-7.6.1
SUSE:Linux Enterprise Server 15 SP2-LTSS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Server 15 SP3-LTSS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Server 15 SP4-LTSS p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 p7zip 0 9.20.1-7.6.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 p7zip 0 16.02-150200.14.12.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 p7zip 0 16.02-150200.14.12.1
SUSE:Manager Proxy 4.3 p7zip 0 16.02-150200.14.12.1
SUSE:Manager Server 4.3 p7zip 0 16.02-150200.14.12.1
Ubuntu:22.04:LTS 7zip 0 No fix
Ubuntu:24.04:LTS 7zip 0 No fix
Ubuntu:24.10 7zip 0 No fix
Ubuntu:Pro:22.04:LTS 7zip 0 21.07+dfsg-4ubuntu0.1~esm1
Ubuntu:Pro:24.04:LTS 7zip 0 23.01+dfsg-11ubuntu0.1~esm1
openSUSE:Leap 15.5 p7zip 0 16.02-150200.14.12.1
openSUSE:Leap 15.6 p7zip 0 16.02-150200.14.12.1

Related vulnerabilities