Vulnerability · Published May 3, 2024 · Assigned by zdi
CVE-2023-40477RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability
High 7.8
In plain English
A high-severity security flaw in WinRAR from RARLAB. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 11.4% (higher than 96% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libclamunrar | 1.0.3-1~deb12u1 | DEBIAN-CVE-2023-40477 |
| Debian:13 | libclamunrar | 1.0.3-1 | DEBIAN-CVE-2023-40477 |
| Debian:14 | libclamunrar | 1.0.3-1 | DEBIAN-CVE-2023-40477 |
| Debian:12 | rar | 2:6.23-1~deb12u1 | DEBIAN-CVE-2023-40477 |
| Debian:13 | rar | 2:6.23-1 | DEBIAN-CVE-2023-40477 |
| Debian:14 | rar | 2:6.23-1 | DEBIAN-CVE-2023-40477 |
| Debian:12 | unrar-nonfree | 1:6.2.6-1+deb12u1 | DEBIAN-CVE-2023-40477 |
| Debian:13 | unrar-nonfree | 1:6.2.10-1 | DEBIAN-CVE-2023-40477 |
| Debian:14 | unrar-nonfree | 1:6.2.10-1 | DEBIAN-CVE-2023-40477 |
| Ubuntu:22.04:LTS | libclamunrar | 0.103.11-0ubuntu0.22.04.1 | USN-6569-1 |
| Ubuntu:22.04:LTS | libclamunrar | 0.103.11-0ubuntu0.22.04.1 | UBUNTU-CVE-2023-40477 |
| Ubuntu:22.04:LTS | rar | 2:6.23-1~22.04.1 | USN-7349-1 |
| Ubuntu:22.04:LTS | rar | 2:6.23-1~22.04.1 | UBUNTU-CVE-2023-40477 |
| Ubuntu:24.04:LTS | rar | 2:6.23-1 | UBUNTU-CVE-2023-40477 |
| Ubuntu:22.04:LTS | unrar-nonfree | 1:6.1.5-1ubuntu0.1 | UBUNTU-CVE-2023-40477 |
| Ubuntu:22.04:LTS | unrar-nonfree | 1:6.1.5-1ubuntu0.1 | USN-7350-1 |
Affected products (as reported)
Weakness: CWE-129 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- ZDI-23-1152 x_research-advisory
- vendor-provided URL vendor-advisory
- https://lists.debian.org/debian-lts-announce/2023/11/msg00009.html