AI Security AI安全 21h ago Updated 11h ago 更新于 11小时前 46

New 7-Zip Vulnerability Could Let Crafted XZ Archives Run Code During Extraction 新的 7-Zip 漏洞可能允许在提取过程中运行精心制作的 XZ 归档文件代码

A heap-based buffer overflow in 7-Zip’s XZ decoder (CVE-2026-14266) allows arbitrary code execution when processing crafted archives. The vulnerability stems from incorrect buffer length calculations in the `MixCoder_Code` function, leading to out-of-bounds writes. Fixed in version 26.02 released on June 25, with the public advisory issued later on July 15 by Trend Micro’s Zero Day Initiative. Rated as High severity (CVSS 7.0) due to local attack vector and high complexity, requiring user intera 7-Zip 存在堆缓冲区溢出漏洞(CVE-2026-14266),攻击者可利用精心构造的 XZ 归档文件在用户上下文中执行代码。 该漏洞源于 `MixCoder_Code` 函数中输出缓冲区长度计算错误,导致越界写入,CVSS 评分为 7.0(高危)。 修复补丁已包含在 7-Zip 26.02 版本中,该版本于 6 月 25 日发布,早于漏洞细节公开时间。 尽管存在远程投递可能,但利用需用户交互且攻击复杂度高,目前尚无公开概念验证或野外利用报告。

65
Hot 热度
70
Quality 质量
60
Impact 影响力

Analysis 深度分析

TL;DR

  • A heap-based buffer overflow in 7-Zip’s XZ decoder (CVE-2026-14266) allows arbitrary code execution when processing crafted archives.
  • The vulnerability stems from incorrect buffer length calculations in the MixCoder_Code function, leading to out-of-bounds writes.
  • Fixed in version 26.02 released on June 25, with the public advisory issued later on July 15 by Trend Micro’s Zero Day Initiative.
  • Rated as High severity (CVSS 7.0) due to local attack vector and high complexity, requiring user interaction to exploit.
  • No public proof-of-concept or wild exploitation reports exist as of late July 2026, but manual updates are critical for affected systems.

Why It Matters

This vulnerability highlights the persistent risks of memory safety issues in widely used legacy software like 7-Zip, particularly within archive handlers that process untrusted input. For security practitioners, it underscores the importance of verifying patch status for tools that may be embedded in other applications or deployed manually without automatic update mechanisms. The delayed disclosure relative to the fix date also illustrates a scenario where proactive patching can mitigate risk before public exposure.

Technical Details

  • Vulnerability Type: Heap-based buffer overflow in the XZ chunked data processing logic.
  • Affected Component: The MixCoder_Code function in C/XzDec.c, where the decoder incorrectly uses the full output-buffer length instead of remaining space after prior writes.
  • Exploitation Vector: Local file execution; requires a user to open a maliciously crafted .xz archive using 7-Zip.
  • Severity Metrics: CVSS 3.0 score of 7.0 (High); vector string AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
  • Mitigation: Update to 7-Zip version 26.02 or later, which corrects the buffer length calculation and adds bounds checking.

Industry Insight

  • Organizations should audit endpoints for manual installations of 7-Zip, as it does not support silent or automated updates, leaving "set-and-forget" machines vulnerable.
  • Software vendors embedding 7-Zip components must verify their bundled versions against CVE-2026-14266 and issue patches independently if they ship outdated decoders.
  • The discrepancy between the fix release (June 25) and public disclosure (July 15) suggests that timely internal patching can neutralize threats before they become publicly actionable intelligence.

TL;DR

  • 7-Zip 存在堆缓冲区溢出漏洞(CVE-2026-14266),攻击者可利用精心构造的 XZ 归档文件在用户上下文中执行代码。
  • 该漏洞源于 MixCoder_Code 函数中输出缓冲区长度计算错误,导致越界写入,CVSS 评分为 7.0(高危)。
  • 修复补丁已包含在 7-Zip 26.02 版本中,该版本于 6 月 25 日发布,早于漏洞细节公开时间。
  • 尽管存在远程投递可能,但利用需用户交互且攻击复杂度高,目前尚无公开概念验证或野外利用报告。

为什么值得看

对于依赖 7-Zip 进行文件处理的开发者和系统管理员而言,此案例展示了内存安全漏洞在流行开源工具中的持续风险,强调了及时更新的重要性。同时,它揭示了“补丁先行于披露”的安全响应模式,为组织优化漏洞管理流程提供了参考。

技术解析

  • 漏洞机制:位于 C/XzDec.c 文件的 MixCoder_Code 函数中,解码器在处理 XZ 流过滤器时,每次传递完整的输出缓冲区长度而非剩余空间,导致解码器认为有比实际更多的写入空间,从而引发堆溢出。
  • 影响范围与权限:漏洞允许在当前进程上下文中执行代码。在 Windows 上,默认情况下 7-Zip 以过滤的标准用户令牌运行,即使管理员账户启动,攻击者获得的也是受限权限,除非程序被提升权限运行。
  • 修复方案:7-Zip 26.02 版本通过从总长度中减去已写入字节数来修正逻辑,并在运行总量超过缓冲区大小时终止操作。该缺陷自至少 21.07 版本起即存在。
  • 风险评估:CVSS 3.0 向量为 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H,表明其为本地向量、高攻击复杂度、无需权限、需要用户界面交互,但对机密性、完整性和可用性有高影响。

行业启示

  • 主动更新策略:鉴于补丁发布早于漏洞详情公开,组织应建立自动化的软件更新监控机制,确保关键组件(如 7-Zip)能第一时间应用安全补丁,而非等待漏洞披露后的被动响应。
  • 最小权限原则的有效性:Windows 默认的过滤标准用户令牌限制了漏洞利用的后果,这证明了在终端安全配置中实施最小权限原则能有效缓解内存安全漏洞带来的潜在危害。
  • 供应链与第三方组件风险:许多产品内置了 7-Zip 的解码器,这些厂商需自行评估并修复其产品中集成的脆弱组件,不能仅依赖上游更新,需加强第三方库的安全审计。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Open Source 开源 Security 安全