{"id":13149,"date":"2026-05-26T10:03:42","date_gmt":"2026-05-26T10:03:42","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/05\/26\/new-7-zip-vulnerabilities-let-attackers-execute-arbitrary-code-and-compromise-systems\/"},"modified":"2026-05-26T10:03:42","modified_gmt":"2026-05-26T10:03:42","slug":"new-7-zip-vulnerabilities-let-attackers-execute-arbitrary-code-and-compromise-systems","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/05\/26\/new-7-zip-vulnerabilities-let-attackers-execute-arbitrary-code-and-compromise-systems\/","title":{"rendered":"New 7-Zip Vulnerabilities Let Attackers Execute Arbitrary Code and Compromise Systems"},"content":{"rendered":"<p>    New 7-Zip Vulnerabilities Let Attackers Execute Arbitrary Code and Compromise Systems<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p class=\"wp-block-paragraph\">A critical heap buffer overflow vulnerability has been disclosed in 7-Zip version 26.00, enabling attackers to achieve arbitrary code execution via a vtable hijack by exploiting a defect in the tool\u2019s NTFS archive handler.<\/p>\n<p class=\"wp-block-paragraph\">Tracked as CVE-2026-48095 and assigned advisory GHSL-2026-140, the flaw resides in the <code>CInStream::GetCuSize()<\/code> function inside <code>NtfsHandler.cpp<\/code>. The function computes the NTFS compression-unit buffer size using a 32-bit shift operation: <code>(UInt32)1 &lt;&lt; (BlockSizeLog + CompressionUnit)<\/code>.<\/p>\n<p class=\"wp-block-paragraph\">When a crafted NTFS image sets <code>ClusterSizeLog &gt;= 28<\/code> \u2014 a value explicitly accepted by the parser and a compressed data attribute carries <code>CompressionUnit == 4<\/code>, the shift exponent reaches 32, triggering undefined behavior (UB) in C++. On x86 hardware, this UB causes <code>_inBuf<\/code> to be allocated as just 1 byte due to hardware masking of shift counts.<\/p>\n<p class=\"wp-block-paragraph\">The undersized 1-byte buffer is immediately used in a <code>ReadStream_FALSE<\/code> call that writes up to 256 MB of attacker-controlled data into that single-byte allocation.<\/p>\n<p class=\"wp-block-paragraph\">Since the stream object <code>CInStream<\/code> is allocated only 304 bytes after <code>_inBuf<\/code> on the heap, the first 64 KB read iteration overwrites the object\u2019s vtable pointer.<\/p>\n<p class=\"wp-block-paragraph\">The second iteration dispatches through the corrupted vtable a classic vtable hijack with the attacker in full control of the overwritten pointer via crafted NTFS cluster content.<\/p>\n<p class=\"wp-block-paragraph\">Both 32-bit and 64-bit builds are affected. On 64-bit systems with 16 GB or more RAM, the <code>_outBuf.Alloc(8 GB)<\/code> call succeeds and execution proceeds directly to the overflow. On low-memory systems, allocation failure limits the impact <a href=\"https:\/\/cybersecuritynews.com\/multiple-django-vulnerabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">to denial-of-service (DoS)<\/a>.<\/p>\n<p class=\"wp-block-paragraph\">A particularly dangerous aspect of this vulnerability is its extension-agnostic attack surface. The NTFS handler uses signature-based fallback detection, matching on the <code>\"NTFS \"<\/code> signature at byte offset 3.<\/p>\n<p class=\"wp-block-paragraph\">This means a crafted NTFS image disguised with any file extension \u2014 <code>.7z<\/code>, <code>.zip<\/code>, <code>.rar<\/code>, or even no extension, can trigger the vulnerable handler after the extension-matched handler rejects it. No interaction beyond opening the crafted file is required.<\/p>\n<p class=\"wp-block-paragraph\">The vulnerability carries a CVSS 3.1 score of 8.8 (High) with a vector <code>AV:N\/AC:L\/PR:N\/UI:R\/S:U\/C:H\/I:H\/A:H<\/code>. It is classified under CWE-787 (Out-of-Bounds Write) and CWE-190 (Integer Overflow or Wraparound). All 7-Zip versions through 26.00 are affected, as the flawed <code>GetCuSize()<\/code> computation has existed since NTFS compressed stream support was first introduced.<\/p>\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/securitylab.github.com\/advisories\/GHSL-2026-140_7-Zip\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">vulnerability was discovered<\/a> and responsibly reported by Jaroslav Loba\u010devski (@JarLob) of the GitHub Security Lab. Confirmation was achieved using UBSan (UndefinedBehaviorSanitizer) under Clang on Linux x64, which flagged the root-cause shift UB at <code>NtfsHandler.cpp:687<\/code> followed by a cascading invalid vtable dereference leading to a <code>SIGSEGV<\/code>.<\/p>\n<p class=\"wp-block-paragraph\">Users are strongly advised to update 7-Zip to a patched version v26.01 immediately and avoid opening untrusted archive files or disk images of any extension until a fix is applied.<\/p>\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong>Follow us on\u00a0<a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/7-zip-vulnerabilities-code-execution\/\">New 7-Zip Vulnerabilities Let Attackers Execute Arbitrary Code and Compromise Systems<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/7-zip-vulnerabilities-code-execution\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>New 7-Zip Vulnerabilities Let Attackers Execute Arbitrary Code and Compromise Systems A critical heap buffer overflow vulnerability has been disclosed in 7-Zip version 26.00, enabling attackers to achieve arbitrary code execution via a vtable hijack by exploiting a defect in the tool\u2019s NTFS archive handler. Tracked as CVE-2026-48095 and assigned advisory GHSL-2026-140, the flaw resides [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,648],"tags":[130],"class_list":["post-13149","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13149"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=13149"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/13149\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=13149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=13149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=13149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}