CVE-2023-38831: Arbitrary Code Execution in WinRAR Archive Entry Handling
- Vendor
- WinRAR GmbH
CVE-2023-38831 is an input-validation vulnerability in RARLAB WinRAR versions before 6.23 that allows arbitrary code execution when a user attempts to view an apparently benign file inside a specially crafted archive. A malicious ZIP archive can contain a document or image alongside a same-named directory holding executable content. Improper archive-entry handling causes WinRAR to pass an incorrect parameter to ShellExecute, executing attacker-controlled content instead of opening only the selected file. RAR-based exploitation variants have also been observed. Attack chains can display the legitimate decoy while executing malicious code. The vulnerability was exploited in the wild as early as April 2023.
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 endpoint through code execution with the affected user's permissions. Observed exploitation has delivered downloaders, remote-access trojans, backdoors, and information stealers, enabling command execution, credential theft, file exfiltration, and persistent access. The vulnerability has been used for initial access in financially motivated and state-sponsored campaigns. Subsequent privilege escalation or lateral movement depends on additional attacker actions and available permissions; neither is an inherent consequence of this flaw.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid opening documents or images directly inside untrusted archives with vulnerable WinRAR installations. Strengthen phishing and attachment filtering, and block or quarantine suspicious archives, including encrypted archives that security controls cannot adequately inspect. Monitor WinRAR for unexpected child processes, particularly command shells, script interpreters, and executables launched from temporary extraction locations. Investigate suspicious scheduled-task creation following archive access. These measures reduce exposure or improve detection but do not replace upgrading.
Remediation
Patch, then assume compromise.
Upgrade all affected WinRAR installations to version 6.23 or later, preferably the latest supported release. Inventory endpoints for older installations and verify that vulnerable copies have been replaced. WinRAR 6.23 and later prevent the described ZIP-based exploitation and observed RAR-based variant.
Exploits
21 exploits validated by Mallory's analysis. Hidden: 12 rejected by Mallory's analysis as not a working exploit; 4 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 28, 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?
- Upgrade all affected WinRAR installations to version 6.23 or later, preferably the latest supported release. Inventory endpoints for older installations and verify that vulnerable copies have been replaced.
- 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 29.0% (99th percentile) as of Nov 28, 2026.
Recent activity
96 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.