{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2023-38831 in the wild since at least 24 Aug 2023, including in ransomware campaigns.","fix":"No fix has been published for CVE-2023-38831 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 14 Sep 2023.","what":"CVE-2023-38831 is a high-severity code injection vulnerability in n/a, published on 23 Aug 2023. 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-38831 and fix it if it is affected.\n\nWhat it is: CVE-2023-38831 is a high-severity code injection vulnerability in n/a, published on 23 Aug 2023. 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: Yes. Attackers have exploited CVE-2023-38831 in the wild since at least 24 Aug 2023, including in ransomware campaigns.\n\nAffected product: n/a. 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-38831/ (Markdown: https://insights.sbomify.com/CVE-2023-38831/index.md)","id":"CVE-2023-38831","markdown":"https://insights.sbomify.com/CVE-2023-38831/index.md","name":"CVE-2023-38831","record":{"aliases":["CVE-2023-39583","CVE-2023-40270","GHSA-w5x7-vwr2-4x27"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"WinRAR archive utility","requires_auth":"none","summary":"Attackers can execute arbitrary code by tricking users into viewing a benign file in a specially crafted ZIP archive where a folder shares the file's name.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"winrar","vendor":"rarlab"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-351","name":"Insufficient Type Distinction"}],"description":"RARLAB WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive. The issue occurs because a ZIP archive may include a benign file (such as an ordinary .JPG file) and also a folder that has the same name as the benign file, and the contents of the folder (which may include executable content) are processed during an attempt to access only the benign file. This was exploited in the wild in April through October 2023.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-08-23","github_poc":60,"max_poc_stars":781,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-08-25T09:44:08Z","kind":"github_poc","ref":"https://github.com/b1tg/CVE-2023-38831-winrar-exploit","stars":781,"title":"CVE-2023-38831 winrar exploit generator"},{"date":"2023-08-27T14:08:36Z","kind":"github_poc","ref":"https://github.com/Garck3h/cve-2023-38831","stars":127,"title":"一款用于生成winrar程序RCE（即cve-2023-38831）的POC的工具。"},{"date":"2023-08-27T21:49:37Z","kind":"github_poc","ref":"https://github.com/ignis-sec/CVE-2023-38831-RaRCE","stars":113,"title":"An easy to install and easy to run tool for generating exploit payloads for CVE-2023-38831, WinRAR RCE before versions 6.23"},{"date":"2023-08-24T16:03:07Z","kind":"github_poc","ref":"https://github.com/BoredHackerBlog/winrar_CVE-2023-38831_lazy_poc","stars":91,"title":"lazy way to create CVE-2023-38831 winrar file for testing"},{"date":"2023-08-28T04:56:10Z","kind":"github_poc","ref":"https://github.com/HDCE-inc/CVE-2023-38831","stars":89,"title":"CVE-2023-38831 PoC (Proof Of Concept)"},{"date":"2023-08-28T14:48:22Z","kind":"github_poc","ref":"https://github.com/knight0x07/WinRAR-Code-Execution-Vulnerability-CVE-2023-38831","stars":40,"title":"Understanding WinRAR Code Execution Vulnerability (CVE-2023-38831) "},{"date":"2023-08-28T08:56:16Z","kind":"github_poc","ref":"https://github.com/Maalfer/CVE-2023-38831_ReverseShell_Winrar-RCE","stars":22,"title":"Pasos necesarios para obtener una reverse shell explotando la vulnerabilidad de winrar CVE-2023-38831 en versiones anteriores a 6.23."},{"date":"2023-09-03T21:14:05Z","kind":"github_poc","ref":"https://github.com/xaitax/WinRAR-CVE-2023-38831","stars":18,"title":"This module exploits a vulnerability in WinRAR (CVE-2023-38831). When a user opens a crafted RAR file and its embedded document, a script is executed, leading to code execution."}],"tier":"exploited"},"has_fix":null,"headline":"RARLAB WinRAR Code Execution","id":"CVE-2023-38831","indexable":true,"kev":{"dateAdded":"2023-08-24","dueDate":"2023-09-14","knownRansomwareCampaignUse":"Known","product":"WinRAR","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"RARLAB","vulnerabilityName":"RARLAB WinRAR Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":0,"n_references":5,"next":{"headline":"File upload in n/a","id":"CVE-2023-38836"},"packages":[],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2023-38830"},"products":["n/a"],"published":"2023-08-23","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":"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"},{"cvss_score":7.8,"headline":"RARLAB WinRAR Recovery Volume Improper Validation of Array Index Remote Code Execution Vulnerability","id":"CVE-2023-40477","kev_date_added":null,"published":"2024-05-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by tricking users into viewing a benign file in a specially crafted ZIP archive where a folder shares the file's name.","url":"https://insights.sbomify.com/CVE-2023-38831/"}