CVE-2023-38831: Arbitrary Code Execution in WinRAR Before 6.23 via Crafted Archives
- Vendor
- WinRAR GmbH
CVE-2023-38831 is an arbitrary code execution vulnerability in RARLAB WinRAR versions before 6.23. A specially crafted ZIP archive can contain an apparently benign document or image and a same-named directory holding executable content. When a user attempts to view the benign entry directly within WinRAR, incorrect archive-entry handling passes an unintended parameter to ShellExecute, causing attacker-controlled executable content or scripts to run. Exploit chains may also display the legitimate decoy to conceal execution. RAR-based exploitation variants have also been observed. The vulnerability was exploited as a zero-day in April 2023 and subsequently adopted by numerous espionage and financially motivated threat actors.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the affected endpoint through arbitrary code execution with the invoking user's permissions. Observed campaigns have deployed remote-access trojans, command shells, downloaders, and information stealers, enabling credential theft, sensitive-file exfiltration, and persistent access. Further compromise depends on the delivered payload and available privileges; the vulnerability does not itself establish elevated privileges.
Mitigation
If you can’t patch tonight, do this now.
Block or quarantine suspicious archives, especially encrypted or nested attachments that security controls cannot adequately inspect. Restrict unnecessary archive formats and use only approved, maintained archive utilities. Train users not to open unexpected archived documents or proceed through unexplained password prompts. Monitor for unexpected executable, script, or shell processes launched by WinRAR and execution from archive-extraction temporary directories. Investigate associated scheduled-task creation and other persistence activity.
Remediation
Patch, then assume compromise.
Update all affected WinRAR installations to version 6.23 or later, preferably the latest supported release. Inventory endpoints for outdated installations and verify that updates have actually replaced vulnerable versions. Updating prevents this exploitation mechanism but does not remove malware or persistence established by an earlier compromise; investigate systems showing suspicious WinRAR-related execution.
Exploits
21 exploits validated by Mallory's analysis. Hidden: 10 rejected by Mallory's analysis as not a working exploit; 3 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-38831 exploited in the wild?
- Yes. As of Nov 11, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 24, 2023.
- Is there a public exploit for CVE-2023-38831?
- Yes. Mallory tracks 21 public exploits or proofs of concept for CVE-2023-38831, the earliest disclosed Aug 23, 2023.
- Is there a patch for CVE-2023-38831?
- Update all affected WinRAR installations to version 6.23 or later, preferably the latest supported release. Inventory endpoints for outdated installations and verify that updates have actually replaced vulnerable versions.
- What products are affected by CVE-2023-38831?
- WinRAR GmbH Winrar.
- How severe is CVE-2023-38831?
- CVE-2023-38831 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 99.8% (100th percentile) as of Nov 11, 2026.
Recent activity
92 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.