Remote code execution in 7-Zip



| Updated: 2024-05-13
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-29072
CWE-ID CWE-122
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
7-Zip
Client/Desktop applications / Software for archiving

Vendor 7-zip.org

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Heap-based buffer overflow

EUVDB-ID: #VU62367

Risk: Medium

CVSSv4.0: 6.2 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Green]

CVE-ID: CVE-2022-29072

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when a file with .7z extension is dragged to the Help>Contents area. A remote attacker can trick the victim to download and drag a specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system under the  7zFM.exe process.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install update from vendor's website.

Vulnerable software versions

7-Zip: 2.00 Beta 1 - 21.07

CPE2.3 External links

https://sourceforge.net/p/sevenzip/bugs/2337/
https://www.youtube.com/watch?v=sT1cvbu7ZTA
https://github.com/kagancapar/CVE-2022-29072
https://news.ycombinator.com/item?id=31070256


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

How the attacker can exploit this vulnerability?

The attacker would have to trick the victim to open a a specially crafted archive.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###