{"id":"CVE-2023-40477","published":"2024-05-03T02:11:12Z","modified":"2025-11-04T19:20:10Z","title":"RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability","vendor":"RARLAB","product":"WinRAR","tier":"tail","description":{"text":"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.\n\nThe 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.10041,"percentile":0.95733,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://www.zerodayinitiative.com/advisories/ZDI-23-1152/","tags":["x_research-advisory"]},{"url":"https://www.win-rar.com/singlenewsview.html?&L=0&tx_ttnews%5Btt_news%5D=232&cHash=c5bf79590657e32554c6683296a8e8aa","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/11/msg00009.html","tags":[]}],"priority":{"score":29.6,"factors":[{"name":"EPSS percentile","points":19.15},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2023-08-29","earliestUrl":"https://github.com/winkler-winsen/Scan_WinRAR","repos":[{"name":"wildptr-io/Winrar-CVE-2023-40477-POC","url":"https://github.com/wildptr-io/Winrar-CVE-2023-40477-POC","stars":26,"created":"2023-08-29"},{"name":"winkler-winsen/Scan_WinRAR","url":"https://github.com/winkler-winsen/Scan_WinRAR","stars":0,"created":"2023-08-29"}]},"first":{"date":"2023-08-29","source":"PoC-in-GitHub","url":"https://github.com/winkler-winsen/Scan_WinRAR"},"provenance":"source"},"vendorSlug":"rarlab","affectedVersions":[{"vendor":"RARLAB","product":"WinRAR","versions":["6.21"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-07-18T13:35:58.103184Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is an improper validation of array index in the recovery volume processing of RARLAB WinRAR, where user-supplied data is not properly checked and can cause a memory access past the end of an allocated buffer. An attacker who gets a target to visit a malicious page or open a malicious file, which requires user interaction and no prior authentication, can execute arbitrary code in the context of the current WinRAR process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:36:10Z"},"euvd":{"id":"EUVD-2023-45048","exploited":false,"provenance":"source"},"detections":{"cveRules":[{"title":"CVE-2023-40477 Potential Exploitation - WinRAR Application Crash","id":"e5a29b54-6fe7-4258-8a23-82960e31231a","level":"medium","status":"test","path":"rules-emerging-threats/2023/Exploits/CVE-2023-40477/win_application_exploit_cve_2023_40477_winrar_crash.yml","url":"https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2023/Exploits/CVE-2023-40477/win_application_exploit_cve_2023_40477_winrar_crash.yml","techniques":[]},{"title":"CVE-2023-40477 Potential Exploitation - .REV File Creation","id":"c3bd6c55-d495-4c34-918e-e03e8828c074","level":"low","status":"test","path":"rules-emerging-threats/2023/Exploits/CVE-2023-40477/file_event_win_exploit_cve_2023_40477_winrar_rev_file_abuse.yml","url":"https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2023/Exploits/CVE-2023-40477/file_event_win_exploit_cve_2023_40477_winrar_rev_file_abuse.yml","techniques":[]}]}}