CVE-2023-40477 RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability
Remote attackers can execute arbitrary code by tricking users into opening malicious files due to improper array index validation in WinRAR.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-40477?
CVE-2023-40477 is a high-severity memory corruption vulnerability in RARLAB WinRAR, published on 3 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-129
Which versions are affected by CVE-2023-40477?
It affects 1 product.
Linux distribution packages (20)
clamav SUSE:Enterprise Storage 7.1 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Server 12 SP5 | All versions | 0.103.11-3.30.1 |
clamav SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 0.103.11-3.30.1 |
clamav SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Manager Proxy 4.2 | All versions | 0.103.11-150000.3.50.1 |
clamav SUSE:Manager Server 4.2 | All versions | 0.103.11-150000.3.50.1 |
clamav openSUSE:Leap 15.4 | All versions | 0.103.11-150000.3.50.1 |
clamav openSUSE:Leap 15.5 | All versions | 0.103.11-150000.3.50.1 |
clamav openSUSE:Tumbleweed | All versions | 0.103.11-2.1 |
Products include Rarlab Winrar.
How do I fix CVE-2023-40477?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-40477 being exploited?
There is no known exploitation of CVE-2023-40477 in the wild and no public exploit code.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in RARLAB WinRAR
Sources
Also known as DEBIAN-CVE-2023-40477, DLA-3542-1, DLA-3543-1, DLA-3653-1, GHSA-58vr-f4x9-3h36, MGASA-2023-0258 and 4 more.