CVE-2023-38831: RARLAB WinRAR Code Execution Vulnerability
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.
Other sources
RARLAB WinRAR contains an unspecified vulnerability that allows an attacker to execute code when a user attempts to view a benign file within a ZIP archive.
— CISA
RARLabs 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
WinRARto a version that resolves this vulnerability.Fixed in 6.23 - Remove
Remove
WinRARfrom your environment.Discontinue use of the product (uninstall WinRAR) if vendor mitigations are unavailable.
Event History
Frequently Asked Questions
What is CVE-2023-38831?
CVE-2023-38831 is a code execution vulnerability in RARLAB WinRAR software.
How does CVE-2023-38831 work?
CVE-2023-38831 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive.
What is the severity of CVE-2023-38831?
CVE-2023-38831 has a severity rating of 7.8, which is considered high.
Which software is affected by CVE-2023-38831?
RARLAB WinRAR versions up to and including 6.23 are affected by CVE-2023-38831.
How can I fix CVE-2023-38831?
To fix CVE-2023-38831, update to a version of RARLAB WinRAR that is higher than 6.23.