A new 7-Zip vulnerability has been detected - are you protected? (2024)

UPD: CVE-2022-29072 is disputed.

A couple of days ago a new vulnerability was discovered by GitHub user Kagancapar in the popular 7-Zip file archiver, which allows gaining administrator privileges on Windows. The vulnerability has not been fixed yet, as the latest version of the application 21.07 has been released on 26/12/2021.

A few words about 7-Zip

7-Zip is a free and open-source file archiver with high compression based on bzip2, PPMd, LZMA2, and LZMA algorithms. 7-zip is one of the three most popular file archiving applications, whose popularity is only rivalled by giants WinZIP and WinRAR. In addition to own .7z-format archives, the archive manager also supports other packer formats commonly used under Windows, such as .rar, .zip, .tar, .wim, .xar etc. The file archiver is available for Windows OS; localizations are available for 87 languages.

CVE-2022-29072 vulnerability: how it works and whose fault is that

7-Zip vulnerability or CVE-2022-29072 is an active zero-day vulnerability and is characterized as allowing privilege escalation and command execution for Windows when a file with the .7z extension is dragged to the Help > Contents area. In simple terms, someone with access, even limited, to your computer is able to gain high-level control to run their own commands or apps.

The problem lies in the 7-zip.chm helper files that are executed via the Windows HTML helper function (hh.exe). So, CVE-2022-29072 is tied to Windows, as it was caused due to interaction of 7-zip with the Windows help application.

The vendor hasn’t said much about vulnerability other than refusing to take responsibility for it, meaning that it depends on Microsoft Help in Windows. However, according to Kagancapar, even if you drop the malicious file, this triggers a heap overflow in 7zFM.exe. This means that it’s 7-Zip who should solve the problem.

How to mitigate the 7-Zip vulnerability

To mitigate CVE-2022-29072, the person who discovered the vulnerability, Kagancapar, recommends deleting the 7-zip.chm file:

1. Open the 7-Zip installation directory or folder on the system. Usually, it’s C:\Program Files\7-Zip or C:\Program Files (x86)\7-Zip.

2. Find the 7-Zip.chm file – this is the help file.

3. Delete this file to remove it from your system.

There is a possibility that you get a notification “File Access Denied”. If that is the case, select Continue.

If you follow these steps and delete the help file, 7-Zip functionality won’t be reduced, and your endpoint will be secured.

7-Zip CVE-2022-29072 mitigation from Scappman

But there is a much simpler and faster solution to mitigate the 7-Zip vulnerability. We are happy to introduce the 7-Zip CVE-2022-29072 mitigation tool from Scappman!

A new 7-Zip vulnerability has been detected - are you protected? (2)

All you need to do is find the application in the Scappman App Store, click on Install, customize the installation settings (if you want to), assign it to all or specific users and … that’s it!

A new 7-Zip vulnerability has been detected - are you protected? (3)

Related posts

A new 7-Zip vulnerability has been detected - are you protected? (2024)

FAQs

What is the 7-Zip vulnerability? ›

The specific flaw exists within the parsing of 7Z files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer underflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the current process.

How safe is 7-Zip encryption? ›

The encryption process is based on AES 256, which is considered super-secure. This encryption helps protect your files from unauthorized access and opening.

How to fix 7-Zip data error? ›

7-Zip data error fixes
  1. Step 1: Create a similar archive with good copies of files with the same settings, and in the same order.
  2. Step 2: Replace "bad" parts of bad. ...
  3. Step 3: You must look listings of files in bad and good archives, logs of "test" command, and think about ways to replace bad parts.
Nov 27, 2023

Is 7-Zip malware? ›

It is safe. that result is a false positive.

Is 7-Zip free and safe? ›

7-Zip is a free and open-source file archiver, a utility used to place groups of files within compressed containers known as "archives".

What is 7-Zip and do I need it? ›

Reasons to Use 7-Zip

7-Zip is a free and open-source file archiver for compressing and uncompressing files. If you need to save some disk space or make your files more portable, this software can compress your files into an archive with a . 7z extension.

What is the best encryption for 7-Zip? ›

It is strongly recommended to use AES-256 to protect sensitive and confidential data. 6. Enter a Password. Use a strong password with at least 8 characters containing upper and lowercase letters, and a minimum of one number.

What is the most secure Zip encryption? ›

256-bit AES is stronger than 128-bit AES, but both of them can provide significantly greater security than the standard Zip 2.0 method described below. An advantage of 128-bit AES is that it is slightly faster than 256-bit AES, that is, it takes less time to encrypt or decrypt a file.

How do I know if a zip file is safe? ›

You can do this by right-clicking on the zip file and selecting "Extract Here," or by using file archiving software such as WinZip. Right-click on the folder containing the extracted files and select "Scan with [name of your antivirus software]" from the context menu.

What causes a zip file to be corrupted? ›

Among the most common is a transfer error when downloading a Zip file from the internet. Such an error can introduce invalid data into a Zip file. Some other possible causes include exposure of media to excessive temperatures or magnetic fields, and mechanical problems with disk drives.

Why is 7-Zip asking for a password? ›

Q: Why is 7Zip asking for a password? A: 7Zip can be set up to ask for a password in order to protect the compressed files from being seen by unauthorized users. This keeps your files secure and private.

How do I recover a 7-Zip file? ›

How to restore using 7-Zip
  1. Open the backup destination folder.
  2. Right click the backup zip archive and select "7-Zip -> Extract files".
  3. Select the folder where to extract the files.
  4. Press Unzip to start the zip extraction. This way you can get your files back without using Backup4all.

Is 7-Zip 100% safe? ›

7-zip is generally considered safe to use.

Do hackers use zip files? ›

Left undetected, these unsafe archives can remain dormant in file storage for extended periods of time before trusted users unwittingly open and activate their contents. Further, even without using malicious code, threat actors can weaponize . ZIP files by filling them with immense quantities of data.

What happens if I delete 7-Zip? ›

After removing the program, some of its related processes still run on the computer. Some traces of the program can still can be found on the computer. Removing process running for a long time and does not come to the end.

What is the 7-Zip 21.07 vulnerability? ›

Privilege escalation vulnerability was found in 7-Zip. Malicious users can exploit this vulnerability to gain privileges and execute arbitrary code by dragging and dropping file with the . 7z extension to the Help>Contents area. The vulnerability announced in version 21.07 and disputed by vendor.

What is access 7 vulnerability? ›

Access:7 could enable hackers to remotely execute malicious code, access sensitive data or alter configuration on medical and IoT devices running PTC's Axeda remote code and management agent. Over 150 device models from more than 100 device manufacturers are potentially affected by Access:7.

What is the vulnerability of unzip? ›

CVE-2022-0530

A flaw was found in Unzip. The vulnerability occurs during the conversion of a wide string to a local string that leads to a heap of out-of-bound write. This flaw allows an attacker to input a specially crafted zip file, leading to a crash or code execution.

What is 7-Zip 9.20 vulnerability? ›

The CInArchive::ReadFileItem method in Archive/Udf/UdfIn. cpp in 7zip 9.20 and 15.05 beta and p7zip allows remote attackers to cause a denial of service (out-of-bounds read) or execute arbitrary code via the PartitionRef field in the Long Allocation Descriptor in a UDF file.

Top Articles
Latest Posts
Article information

Author: Greg O'Connell

Last Updated:

Views: 5998

Rating: 4.1 / 5 (62 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Greg O'Connell

Birthday: 1992-01-10

Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

Phone: +2614651609714

Job: Education Developer

Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.