# CVE-2023-40477: RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability

CVE-2023-40477 is fixed in 8 products on 2 platforms, first by WinRAR 6.23.0, released August 2, 2023. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2023-40477
- Priority: High
- CVSS: 7.8 (Medium)
- EPSS: 0.1062
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 24, 2023
- Weakness: CWE-129: Improper Validation of Array Index
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-40477

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | WinRAR | 6.23.0 | [WinRAR 6.23.0](https://patchblox.com/security/data/fix/windows-app/rarlab.winrar-6.23.0.md) | Aug 2, 2023 |
| Linux | libclamunrar Debian 12.15 (bookworm) | 1.0.3-1~deb12u1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | libclamunrar Debian 13.5 (trixie) | 1.0.3-1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | libclamunrar Debian 14 | 1.0.3-1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | libclamunrar Ubuntu 22.04.1 LTS (jammy) | 0.103.11-0ubuntu0.22.04.1 | [libclamunrar 0.103.11-0ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libclamunrar-0.103.11-0ubuntu0.22.04.1.md) | Aug 24, 2023 |
| Linux | libclamunrar9 Ubuntu 20.04 LTS (focal) | 0.103.11-0ubuntu0.20.04.1 | [libclamunrar9 0.103.11-0ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libclamunrar9-0.103.11-0ubuntu0.20.04.1.md) | Aug 24, 2023 |
| Linux | libclamunrar9 Ubuntu 22.04.1 LTS (jammy) | 0.103.11-0ubuntu0.22.04.1 | [libclamunrar9 0.103.11-0ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libclamunrar9-0.103.11-0ubuntu0.22.04.1.md) | Aug 24, 2023 |
| Linux | libunrar-headers Ubuntu 22.04.1 LTS (jammy) | 1:6.1.5-1ubuntu0.1 | [libunrar-headers 1:6.1.5-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libunrar-headers-1-6.1.5-1ubuntu0.1.md) | Apr 28, 2024 |
| Linux | libunrar5 Ubuntu 20.04 LTS (focal) | 1:5.6.6-2ubuntu0.1 | [libunrar5 1:5.6.6-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libunrar5-1-5.6.6-2ubuntu0.1.md) | Apr 28, 2024 |
| Linux | libunrar5 Ubuntu 22.04.1 LTS (jammy) | 1:6.1.5-1ubuntu0.1 | [libunrar5 1:6.1.5-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libunrar5-1-6.1.5-1ubuntu0.1.md) | Apr 28, 2024 |
| Linux | rar Debian 12.15 (bookworm) | 2:6.23-1~deb12u1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | rar Debian 13.5 (trixie) | 2:6.23-1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | rar Debian 14 | 2:6.23-1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | rar Ubuntu 20.04 LTS (focal) | 2:6.23-1~20.04.1 | [rar 2:6.23-1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rar-2-6.23-1-20.04.1.md) | Aug 24, 2023 |
| Linux | rar Ubuntu 22.04.1 LTS (jammy) | 2:6.23-1~22.04.1 | [rar 2:6.23-1~22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rar-2-6.23-1-22.04.1.md) | Aug 24, 2023 |
| Linux | rar Ubuntu 24.04.5 LTS (noble) | 2:6.23-1 | [rar 2:6.23-1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-rar-2-6.23-1.md) | Aug 24, 2023 |
| Linux | rar Ubuntu 24.10 (oracular) | 2:6.23-1 | [rar 2:6.23-1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-rar-2-6.23-1.md) | Aug 25, 2023 |
| Linux | rar Ubuntu 25.04 (plucky) | 2:6.23-1 | [rar 2:6.23-1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-rar-2-6.23-1.md) | Aug 25, 2023 |
| Linux | unrar Ubuntu 20.04 LTS (focal) | 1:5.6.6-2ubuntu0.1 | [unrar 1:5.6.6-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-unrar-1-5.6.6-2ubuntu0.1.md) | Apr 28, 2024 |
| Linux | unrar Ubuntu 22.04.1 LTS (jammy) | 1:6.1.5-1ubuntu0.1 | [unrar 1:6.1.5-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-unrar-1-6.1.5-1ubuntu0.1.md) | Apr 28, 2024 |
| Linux | unrar-nonfree Debian 12.15 (bookworm) | 1:6.2.6-1+deb12u1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | unrar-nonfree Debian 13.5 (trixie) | 1:6.2.10-1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |
| Linux | unrar-nonfree Debian 14 | 1:6.2.10-1 | [DEBIAN-CVE-2023-40477](https://patchblox.com/security/data/fix/linux/debian-cve-2023-40477.md) | May 3, 2024 |

---

Data as of 2026-11-12T01:51:14Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
