# CVE-2023-38831: RARLAB WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2023-08-24; federal due date 2023-09-14; known ransomware use
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 29.00% (percentile 99, 2026-11-26)
- **CWE:** CWE-345, CWE-351
- **Aliases:** EDB-51935
- **Published:** 2023-08-23T00:00:00.000Z
- **Modified:** 2026-11-23T00:00:00.000Z

## Who should check

- Anyone running n/a (versions: see the vendor advisory)
- Anyone running rarlab winrar \< 6.23

## 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.

## Affected and fixed versions

- n/a: see vendor advisory (nvd)
- rarlab winrar: \< 6.23 (nvd)

## Mitigation

- Upgrade winrar to 6.23 or later.

## Timeline

- 2023-08-23: Published
- 2023-08-24: Added to CISA KEV (exploited in the wild)
- 2023-09-14: CISA remediation due date for US federal agencies
- 2026-11-23: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-38831. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-38831.md
Affected: n/a; rarlab winrar < 6.23
Fixed in: rarlab winrar 6.23

Steps:
1. Search this machine and project for n/a, rarlab winrar: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-38831 being exploited?

Yes. CISA lists CVE-2023-38831 in its Known Exploited Vulnerabilities catalog since 2023-08-24, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 29.00% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-38831?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-38831?

n/a; rarlab winrar \< 6.23.

### Is there a fix for CVE-2023-38831?

Yes. Fixed in rarlab winrar 6.23. Upgrade winrar to 6.23 or later.

### How do I check if I'm affected by CVE-2023-38831?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- exploit: <https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/>
- exploit: <https://www.bleepingcomputer.com/news/security/winrar-zero-day-exploited-since-april-to-hack-trading-accounts/>
- exploit: <http://packetstormsecurity.com/files/174573/WinRAR-Remote-Code-Execution.html>
- exploit: <https://blog.google/threat-analysis-group/government-backed-actors-exploiting-winrar-vulnerability/>
- exploit: <https://www.exploit-db.com/exploits/51935>
- other: <https://news.ycombinator.com/item?id=37236100>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-38831>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-38831>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/51935>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2023-38831> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-38831>
