CVE-2022-29072

7.8 HIGH

📋 TL;DR

This vulnerability in 7-Zip allows attackers to execute arbitrary commands with elevated privileges when a malicious .7z file is dragged to the Help>Contents area. It affects Windows users running 7-Zip versions through 21.07. The exploit leverages a heap overflow and DLL misconfiguration to achieve code execution.

💻 Affected Systems

Products:
  • 7-Zip
Versions: through 21.07
Operating Systems: Windows
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Windows versions of 7-Zip. Linux/macOS versions are not vulnerable. Requires user interaction (dragging file to Help>Contents).

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise with SYSTEM-level privileges, allowing installation of persistent malware, data theft, and complete control of the affected system.

🟠

Likely Case

Local privilege escalation where a low-privileged user gains administrative rights on the system, potentially leading to lateral movement within a network.

🟢

If Mitigated

Limited impact with proper user training and application sandboxing, though the vulnerability could still be triggered by social engineering.

🌐 Internet-Facing: LOW - This requires local access and user interaction, not directly exploitable over the network.
🏢 Internal Only: MEDIUM - Internal users could exploit this for privilege escalation, especially in environments with shared workstations or insufficient user privilege separation.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploit requires local access and user interaction. Multiple proof-of-concept implementations are publicly available. Some reports question the privilege escalation aspect, but code execution is confirmed.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 22.01 and later

Vendor Advisory: https://sourceforge.net/p/sevenzip/bugs/2337/

Restart Required: No

Instructions:

1. Download latest 7-Zip version from official website. 2. Run installer. 3. Follow installation prompts. 4. Verify version is 22.01 or higher.

🔧 Temporary Workarounds

Disable 7-Zip Context Menu Integration

windows

Prevents 7-Zip from being triggered via file operations

reg delete "HKCU\Software\7-Zip\FM" /v "ContextMenu" /f
reg delete "HKLM\Software\7-Zip\FM" /v "ContextMenu" /f

Use Alternative Archive Software

windows

Temporarily replace 7-Zip with patched or alternative software

🧯 If You Can't Patch

  • Restrict user privileges to prevent administrative access
  • Implement application whitelisting to block 7zFM.exe execution

🔍 How to Verify

Check if Vulnerable:

Check 7-Zip version in Help > About. If version is 21.07 or earlier, system is vulnerable.

Check Version:

"C:\Program Files\7-Zip\7zFM.exe" --version

Verify Fix Applied:

Verify 7-Zip version is 22.01 or higher in Help > About.

📡 Detection & Monitoring

Log Indicators:

  • Process creation events for 7zFM.exe with unusual parent processes
  • Windows Event Logs showing 7-Zip crashes or heap corruption

Network Indicators:

  • Unusual outbound connections from 7zFM.exe process

SIEM Query:

Process Creation where (Image contains '7zFM.exe' AND CommandLine contains 'Contents') OR (ParentImage contains '7zFM.exe' AND Image != '7zFM.exe')

🔗 References

📤 Share & Export