RARLAB WinRAR Code Execution Vulnerability (CVE-2023-38831)
Published In CISA KEV since Sources: pwn.watch, CVE.org
What is affected, what to do
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.
The vulnerability is being actively exploited; treat it as a priority. CISA lists it as used in ransomware campaigns. Update RARLAB WinRAR to version 6.23. Immediate actions, mitigation and detection rules are in the runbook below.
- Affected
- RARLAB WinRAR
lt *..6.23
- RARLAB WinRAR
- Fixed in
- RARLAB WinRAR
6.23
- RARLAB WinRAR
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
7.8
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v3
7.8
CVSS v3
Severity High on the scale from 0 to 10.
Source: pwn.watch, CVE.org
99.81 %
EPSS score
High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
Source: FIRST EPSS, percentile 99.96
Show all metrics
- Severity
- Critical
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 247.22 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- actively exploited
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 7.8 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 7.8
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 99.81 %
- High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 99.96
- Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- Actively exploited
- Published
In CISA KEV since
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- CISA assessment (SSVC)
- Exploitation: active · not automatable · Technical impact: total
- Source: CISA Vulnrichment, as of 23 August 2023
CWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-351
Response and mitigation
Why act now?
Prioritisation rationale
The vector is formally local and requires user interaction. In practice, it is reliably triggered through phishing emails, messengers, and forum posts carrying crafted archives that look like harmless images or PDFs. A single double-click then gives full confidentiality, integrity, and availability impact in the user's context. CISA flags known ransomware-campaign use, and the exploitation likelihood ranks among the very highest of any CVE. Practically every organisation with unmanaged freeware on internet-facing workstations is a target. Despite the "local" label, treat this as critical with a days-not-weeks remediation window, starting with email-enabled endpoints and privileged users.
Runbook step 1
Immediate response (0-24 h)
- Upgrade to WinRAR 6.23 or later on every client and server. All versions before 6.23 are affected. Query your software inventory (SCCM/Intune, EDR asset view) for
WinRAR.exewith a file version below 6.23. Include portable copies in user profiles (%USERPROFILE%\Downloads,%APPDATA%, network shares). - Where you cannot upgrade today, uninstall WinRAR or block it via AppLocker/WDAC. Reassign
.zip/.rarfile associations to Windows Explorer or another patched tool. WinRAR does not auto-update, so verify every instance you find. - Sweep your mail gateway and web proxy for recent ZIP/RAR attachments containing entries with a space before or after the extension (e.g.
report.pdfalongside a folderreport.pdf \holdingreport.pdf .cmd). Quarantine any hits and identify the recipients. - Retro-hunt in EDR for child processes of
WinRAR.exe(see Detection rules). Isolate affected endpoints, preserve forensic evidence, and reset credentials used on those hosts — especially browser-stored passwords, VPN, and banking/trading accounts. - Send a targeted user advisory: do not open archives from email, messengers, or forums with WinRAR until the upgrade is confirmed, and forward suspicious archives to the SOC.
- Upgrade to WinRAR 6.23 or later on every client and server. All versions before 6.23 are affected. Query your software inventory (SCCM/Intune, EDR asset view) for
Runbook step 2
Mitigation layers
- Application control (endpoint): add a WDAC/AppLocker publisher rule with a minimum version that blocks WinRAR below 6.23. Back it with an EDR custom block for child processes of
WinRAR.exe:cmd.exe,powershell.exe,wscript.exe,cscript.exe,mshta.exe,rundll32.exe. - Microsoft Defender ASR: set "Block executable content from email client and webmail" and "Block JavaScript or VBScript from launching downloaded executable content" to Block, not Audit. These rules break the common follow-on chains but do not fix the bug itself.
- Mail/web filtering: reject or sandbox archives with double extensions, a space before the extension, or a file and folder sharing the same name. Quarantine password-protected external ZIP/RAR files by default.
- Execution-path hardening: block script and binary execution from
%TEMP%\Rar$DI*with an AppLocker path rule or an EDR path rule. This is the staging path the payload launches from. - Least privilege: remove local admin rights from standard users to contain code running in user context. Allow freeware such as WinRAR only through the sanctioned software catalogue.
- Application control (endpoint): add a WDAC/AppLocker publisher rule with a minimum version that blocks WinRAR below 6.23. Back it with an EDR custom block for child processes of
Runbook step 3
Detection rules
- Process ancestry (Sysmon EID 1 / Security 4688):
ParentImageends with\WinRAR.exeand the child is a script host or LOLBin. KQL:DeviceProcessEvents | where InitiatingProcessFileName =~ "WinRAR.exe" and FileName in~ ("cmd.exe","powershell.exe","wscript.exe","cscript.exe","mshta.exe","rundll32.exe") - File creation (Sysmon EID 11):
TargetFilenamecontains\Rar$DIand matches a space-padded double extension, e.g. regex\.[A-Za-z0-9]{2,4} \.(cmd|bat|ps1|vbs|js|exe|scr)$. This combination is a high-fidelity exploitation indicator. - Command line:
CommandLinecontains\AppData\Local\Temp\Rar$DItogether with.cmdor.bat. Sigma shape:selection: ParentImage|endswith: '\WinRAR.exe' and CommandLine|contains: 'Rar$DI'. - Network follow-on (Zeek/Suricata, EDR DeviceNetworkEvents): outbound connections from processes whose parent is
WinRAR.exe, especially HTTP(S) downloads or traffic to newly registered domains shortly after an archive was opened. - Inventory drift: feed a recurring query (e.g.
DeviceTvmSoftwareInventory | where SoftwareName has "winrar") into the SIEM to flag any version below 6.23 as a compliance signal.
- Process ancestry (Sysmon EID 1 / Security 4688):
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
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.
Source: pwn.watch, CISA KEV Catalog, cvelistv5, NVD (NIST), CVE.org (MITRE)
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| rarlab | winrar |
|
|
Vendors and products
Weakness classes (CWE)
CWE-351Insufficient Type Distinction
Base
The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.
Entry at MITRE CWE-351
Public exploit references
Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.
| CISA KEV Catalog | CISA Known Exploited Vulnerability (opens in a new tab)cisa.gov | actively exploited | |
| Packet Storm | WinRAR Remote Code Execution (opens in a new tab)packetstormsecurity.com | PoC (publicly reported)reported, not verified | — |
| PoC-in-GitHub (nomi-sec) | defender-bypass-winrar-cve-2023-38831 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | DFIR-Capstone-Investigations (opens in a new tab)github.com | PoC (publicly reported)reported, not verified | |
| PoC-in-GitHub (nomi-sec) | TXDXCristhian_2023-CVE-38831 (opens in a new tab)github.com | PoC (publicly reported)reported, not verified |
References & sources
- group-ib.comTraders' Dilemma: Unveiling CVE-2023-38831 WinRAR Zero-Daypwn-watch
- bleepingcomputer.comnews/security/winrar-zero-day-exploited-since-april-to-hack-tra…
- news.ycombinator.comitem?id=37236100
- packetstormsecurity.comfiles/174573/WinRAR-Remote-Code-Execution.html
- blog.googleGovernment-backed actors exploiting WinRAR vulnerabilitypwn-watch
- cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2023-38831government-resource
- pwn.watchpwn.watch: WinRAR zero-day used against traders, then state hackers (CVE-2023-38831)pwn-watch
- rarlab.comWinRAR what's newpwn-watch
- NVD (NIST)NVD: CVE-2023-38831pwn-watch
- cisa.govCISA Known Exploited Vulnerabilities Catalogpwn-watch
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2023-38831"><img src="https://intel.neosec.eu/badge/cve/CVE-2023-38831.svg?lang=en" alt="CVE-2023-38831 – NEOSEC Intel" height="20"></a>