Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Levi Strauss Data Breach Exposes Customer and Employee Data
August 8, 2026
OpenAI Pauses Astra Model Development to Assess Cybersecurity Risks
August 8, 2026
Critical Linux Kernel SCTP Vulnerability Lets Attackers Gain Root
August 7, 2026
Home/CyberSecurity News/Critical 7-Zip Vulnerabilities Allow Remote Code Execution
CyberSecurity News

Critical 7-Zip Vulnerabilities Allow Remote Code Execution

Key Takeaways A critical heap buffer overflow vulnerability (CVE-2026-48095) has been identified in 7-Zip. The flaw allows remote code execution (RCE) via a crafted NTFS archive, regardless of file...

Emy Elsamnoudy
Emy Elsamnoudy
May 26, 2026 3 Min Read
69 0

Key Takeaways

  • A critical heap buffer overflow vulnerability (CVE-2026-48095) has been identified in 7-Zip.
  • The flaw allows remote code execution (RCE) via a crafted NTFS archive, regardless of file extension.
  • All 7-Zip versions up to and including 26.00 are affected, impacting both 32-bit and 64-bit systems.
  • The vulnerability carries a CVSS 3.1 score of 8.8 (High).
  • Users must update 7-Zip to a patched version immediately to mitigate the risk.

Critical 7-Zip Vulnerability Opens Door to Remote Code Execution

A severe heap buffer overflow vulnerability has been uncovered in 7-Zip, version 26.00 and earlier, posing a significant risk of remote code execution (RCE). This critical flaw, identified as CVE-2026-48095 (advisory GHSL-2026-140), stems from a defect within the archiving tool’s NTFS handler, which can be exploited through a vtable hijack.

Table Of Content

  • Key Takeaways
  • Critical 7-Zip Vulnerability Opens Door to Remote Code Execution
  • Technical Deep Dive into the Flaw
  • Impact and Attack Surface
  • What You Should Do

Technical Deep Dive into the Flaw

The core of the vulnerability lies within the CInStream::GetCuSize() function, located in NtfsHandler.cpp. This function is responsible for calculating the size of the NTFS compression-unit buffer using a 32-bit shift operation: (UInt32)1 << (BlockSizeLog + CompressionUnit).

According to research by Jaroslav Lobačevski (@JarLob) of the GitHub Security Lab, the issue manifests when a specially crafted NTFS image sets ClusterSizeLog >= 28. If this condition is met, and a compressed data attribute contains CompressionUnit == 4, the shift exponent reaches 32. This triggers undefined behavior (UB) in C++. On x86 architectures, this UB causes the _inBuf to be incorrectly allocated as a mere single byte due to hardware masking of shift counts.

Immediately following this undersized allocation, a ReadStream_FALSE call attempts to write up to 256 MB of attacker-controlled data into the tiny 1-byte buffer. Since the CInStream object is allocated only 304 bytes after _inBuf on the heap, the initial 64 KB read iteration overwrites the object’s vtable pointer. A subsequent iteration then dispatches through this corrupted vtable, enabling a classic vtable hijack where the attacker gains full control over the overwritten pointer via the malicious NTFS cluster content.

Impact and Attack Surface

Both 32-bit and 64-bit versions of 7-Zip are susceptible to this vulnerability. On 64-bit systems equipped with 16 GB or more RAM, the _outBuf.Alloc(8 GB) call successfully completes, allowing the overflow to proceed directly to RCE. However, on systems with limited memory, an allocation failure may reduce the impact to a denial-of-service (DoS) condition.

A particularly concerning aspect of this flaw is its extension-agnostic attack surface. The NTFS handler employs signature-based fallback detection, specifically looking for the “NTFS ” signature at byte offset 3. This means that a malicious NTFS image, disguised with any common file extension—such as .7z, .zip, .rar, or even no extension at all—can still trigger the vulnerable handler. This occurs after the initial extension-matched handler rejects the file, making the attack highly versatile. Crucially, no user interaction beyond simply opening the crafted file is required for exploitation.

The vulnerability has been assigned a CVSS 3.1 score of 8.8 (High) with a vector of AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. It is categorized under CWE-787 (Out-of-Bounds Write) and CWE-190 (Integer Overflow or Wraparound). All 7-Zip versions up to and including 26.00 are affected, as the flawed GetCuSize() computation has been present since NTFS compressed stream support was first introduced.

The vulnerability was discovered and responsibly reported by Jaroslav Lobačevski of the GitHub Security Lab. Confirmation was achieved using UBSan (UndefinedBehaviorSanitizer) under Clang on Linux x64, which pinpointed the root-cause shift UB at NtfsHandler.cpp:687, leading to a cascading invalid vtable dereference and ultimately a SIGSEGV.

What You Should Do

  • Update Immediately: Users are strongly advised to update 7-Zip to a patched version as soon as one becomes available.
  • Exercise Caution: Avoid opening untrusted archive files or disk images, regardless of their file extension, until your software has been updated.
  • Implement Least Privilege: Ensure that users operate with the minimum necessary privileges to reduce the potential impact of successful exploitation.
  • Monitor for Anomalies: Keep an eye on system logs and network traffic for any unusual activity that might indicate attempted exploitation.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackCVEExploitPatchSecurityVulnerability

Share Article

Emy Elsamnoudy

Emy Elsamnoudy

Emy is a cybersecurity analyst and reporter specializing in threat hunting, defense strategies, and industry trends. With expertise in proactive security measures, Emily covers the tools and techniques organizations use to detect and prevent cyber attacks. She is a regular speaker at security conferences and has contributed to industry reports on threat intelligence and security operations. Emily's reporting focuses on helping organizations improve their security posture through practical, actionable insights.

Previous Post

Anthropic’s Claude Code and Security Tool Nears Public Release

Next Post

Payload Ransomware Encrypts Windows Files with ChaCha20 and Curve25519

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Critical Zapscape KVM Vulnerability CVE-2026-64561 Allows Guest-to-Host Escape
August 7, 2026
Chrome 101 Patches 41 Vulnerabilities, 6 Critical Memory Bugs
August 7, 2026
Patchwork APT Uses Fake PDFs, Chat Apps to Spy on PCs, Android
August 7, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Emy Elsamnoudy
Emy Elsamnoudy
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us