7-Zip Memory Corruption Vulnerability in RAR5 Handler Leading to Denial-of-Service

Vulnerability

A heap-based buffer overflow vulnerability has been identified in 7-Zip versions prior to 25.0.0. The issue arises in the RAR5 handler, where the decoder writes zeroes outside the allocated heap buffer. This memory corruption can cause a denial-of-service condition. The vulnerability is triggered when the RAR5 decoder attempts to recover from corrupted items by filling them with zeroes, but a miscalculation allows the zeroes to be written beyond the buffer's limits.

Impact

Exploitation of this vulnerability leads to memory corruption, causing a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by compiling 7-Zip with AddressSanitizer enabled, and then extracting a specially crafted RAR5 file that triggers the heap buffer overflow. The AddressSanitizer will report the heap-buffer-overflow error, indicating that the vulnerability has been successfully exploited.

Remediation

Users can upgrade to 7-Zip version 25.0.0 or later, where this vulnerability has been fixed.

Added: Jul 17, 2025, 7:27 PM
Updated: Jul 17, 2025, 10:25 PM

Vulnerability Rating

Custom Algorithm
spread
8.4
impact
2.5
exploitability
5.8
remediation
7.7
relevance
0.3
threat
6.4
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.