Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2023-40477 EUVD-2023-45048GHSA-58vr-f4x9-3h36

RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability

Published May 3, 2024 · Updated Nov 4, 2025 · Assigned by zdi

Description

RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of RARLAB WinRAR. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the processing of recovery volumes. The issue results from the lack of proper validation of user-supplied data, which can result in a memory access past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-21233.

Affected products

VendorProductAffectedFixed
RARLAB WinRAR 6.21 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libclamunrar 1.0.3-1 —
Debian 14 rar 2:6.23-1 —
Debian 14 unrar-nonfree 1:6.2.10-1 —
Debian 13 libclamunrar 1.0.3-1 —
Debian 13 rar 2:6.23-1 —
Debian 13 unrar-nonfree 1:6.2.10-1 —
Debian 12 libclamunrar 1.0.3-1~deb12u1 —
Debian 12 rar 2:6.23-1~deb12u1 —
Debian 12 unrar-nonfree 1:6.2.6-1+deb12u1 —
Debian 10 libclamunrar 0.103.10-0+deb10u1 DLA-3653-1
Debian 10 rar 2:6.23-1~deb10u1 DLA-3543-1
Debian 10 unrar-nonfree 1:5.6.6-1+deb10u4 DLA-3542-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS rar 2:6.23-1 —
Ubuntu 22.04 LTS libclamunrar 0.103.11-0ubuntu0.22.04.1 USN-6569-1
Ubuntu 22.04 LTS rar 2:6.23-1~22.04.1 USN-7349-1
Ubuntu 22.04 LTS unrar-nonfree 1:6.1.5-1ubuntu0.1 USN-7350-1
Ubuntu 20.04 LTS libclamunrar 0.103.11-0ubuntu0.20.04.1 USN-6569-1
Ubuntu 20.04 LTS rar 2:6.23-1~20.04.1 USN-7349-1
Ubuntu 20.04 LTS unrar-nonfree 1:5.6.6-2ubuntu0.1 USN-7350-1
Ubuntu 18.04 LTS rar +2 No fix yet —
Ubuntu 16.04 LTS rar +2 No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP5 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES 15 SP4 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES 15 SP3 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES 15 SP2 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES 15 SP1 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 clamav 0.103.11-3.30.1 SUSE-SU-2023:4297-1
SLES for SAP 15 SP3 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES for SAP 15 SP2 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES for SAP 15 SP1 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLES for SAP 12 SP5 clamav 0.103.11-3.30.1 SUSE-SU-2023:4297-1
SLE HPC 15 SP3 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLE HPC 15 SP2 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SLE HPC 15 SP1 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SUSE Manager Server 4.2 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SUSE Manager Proxy 4.2 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
SUSE Enterprise Storage 7.1 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed clamav 0.103.11-2.1 openSUSE-SU-2024:13394-1
openSUSE Leap 15.5 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1
openSUSE Leap 15.4 clamav 0.103.11-150000.3.50.1 SUSE-SU-2023:4415-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 11

References