Buffer overflow in 7-Zip

CVE-2022-29072

7-Zip through 21.07 on Windows allows privilege escalation and command execution when a file with the .7z extension is dragged to the Help>Contents area. This is caused by misconfiguration of 7z.dll and a heap overflow. The command runs in a child process under the 7zFM.exe process. NOTE: multiple third parties have reported that no privilege escalation can occur

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.015, 75.1th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

5 public repositories with exploit or proof-of-concept code for this CVE:

  • kagancapar/CVE-2022-29072 (671 stars, last pushed 2022-04-22): 7-Zip through 21.07 on Windows allows privilege escalation and command execution when a file with the .7z extension is dragged to the Help>Contents area.
  • sentinelblue/CVE-2022-29072 (8 stars, last pushed 2022-04-20): ** DISPUTED ** 7-Zip through 21.07 on Windows allows privilege escalation and command execution when a file with the .7z extension is dragged to the Help>Contents area. This is caused by misconfigura…
  • tiktb8/CVE-2022-29072 (6 stars, last pushed 2022-04-18): Powershell to mitigate CVE-2022-29072
  • Phantomiman/7-Zip.chm-Mitigation (3 stars, last pushed 2022-12-20): 7-Zip CVE-2022-29072 Mitigation - CHM file - This script detects if the .chm file exists and removes it.
  • rasan2001/CVE-2022-29072 (last pushed 2024-05-10)

Also mentioned in 39 other repositories (adeshrr/nessus-vulnerability-scanner, ARPSyndicate/cvemon, changtraixuqang97/changtraixuqang97, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References