{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-40477 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-40477 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2023-40477 in the wild and no public exploit code.\n\nAffected product: RARLAB WinRAR. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-40477/ (Markdown: https://insights.sbomify.com/CVE-2023-40477/index.md)","id":"CVE-2023-40477","markdown":"https://insights.sbomify.com/CVE-2023-40477/index.md","name":"CVE-2023-40477","record":{"aliases":["DEBIAN-CVE-2023-40477","DLA-3542-1","DLA-3543-1","DLA-3653-1","GHSA-58vr-f4x9-3h36","MGASA-2023-0258","SUSE-SU-2023:4297-1","SUSE-SU-2023:4415-1","UBUNTU-CVE-2023-40477","openSUSE-SU-2024:13394-1"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"WinRAR archive utility","requires_auth":"none","summary":"Remote attackers can execute arbitrary code by tricking users into opening malicious files due to improper array index validation in WinRAR.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"zdi","cpe":[{"product":"winrar","vendor":"rarlab"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"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.\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.","ecosystems":["SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2023-08-29","github_poc":2,"max_poc_stars":25,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-08-29T16:29:48Z","kind":"github_poc","ref":"https://github.com/wildptr-io/Winrar-CVE-2023-40477-POC","stars":25,"title":"CVE-2023-40477 PoC by Wild-Pointer"},{"date":"2023-08-29T14:41:58Z","kind":"github_poc","ref":"https://github.com/winkler-winsen/Scan_WinRAR","stars":0,"title":"Scan for WinRAR files affected to CVE-2023-40477"}],"tier":"poc_unverified"},"has_fix":true,"headline":"RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability","id":"CVE-2023-40477","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":20,"n_references":2,"next":{"headline":"NETGEAR RAX30 Telnet CLI passwd Stack-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2023-40478"},"packages":[{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["0.103.11-3.30.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2023:4297-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["0.103.11-3.30.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:4297-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Manager Proxy 4.2","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Manager%20Proxy%204.2","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"SUSE:Manager Server 4.2","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/suse/clamav\u0026distro=SUSE%20Manager%20Server%204.2","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/opensuse/clamav\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["0.103.11-150000.3.50.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/opensuse/clamav\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:4415-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.103.11-2.1"],"introduced":["0"],"last_affected":[],"package":"clamav","purl":"pkg:rpm/opensuse/clamav\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13394-1"}],"prev":{"headline":"GStreamer H265 Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2023-40476"},"products":["WinRAR"],"published":"2024-05-03","related":[{"cvss_score":7.8,"headline":"RARLAB WinRAR Path Traversal","id":"CVE-2025-6218","kev_date_added":"2025-12-09","published":"2025-06-21"},{"cvss_score":7.8,"headline":"RARLAB WinRAR Code Execution","id":"CVE-2023-38831","kev_date_added":"2023-08-24","published":"2023-08-23"},{"cvss_score":7.8,"headline":"WinRAR Absolute Path Traversal","id":"CVE-2018-20250","kev_date_added":"2022-02-15","published":"2019-02-05"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2008-7144","kev_date_added":null,"published":"2009-09-01"},{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2004-1254","kev_date_added":null,"published":"2004-12-22"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2006-3845","kev_date_added":null,"published":"2006-07-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["RARLAB"]},"summary":"Remote attackers can execute arbitrary code by tricking users into opening malicious files due to improper array index validation in WinRAR.","url":"https://insights.sbomify.com/CVE-2023-40477/"}