Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-38831 PoC — WinRAR 安全漏洞

Source
Associated Vulnerability
Title:WinRAR 安全漏洞 (CVE-2023-38831)
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.
Description
CVE-2023-38831 PoC (Proof Of Concept)
Readme
# CVE-2023-38831 PoC (Proof Of Concept)

This is an easy to use exploit for CVE-2023-38831, a vulnerability that affects WinRAR versions before 6.23.

> An exploitable vulnerability has been identified in RARLabs WinRAR versions prior to 6.23. This vulnerability enables attackers to execute arbitrary code through a specifically crafted ZIP archive. The vulnerability arises due to the mishandling of ZIP archives containing benign files, such as ordinary .PDF document, alongside folders sharing the same name. When a user attempts to access the benign file, the archive may include a similarly named folder containing executable content. This malicious content within the folder is processed during the attempt to access the benign file, facilitating the execution of arbitrary code. The exploitation of this vulnerability has been documented in real-world incidents occurring from April to August 2023

![](https://cdn.discordapp.com/attachments/1062017290138300489/1145585414867009586/image.png)
![](https://cdn.discordapp.com/attachments/1062017290138300489/1145588863335673856/demo_.gif)

# Usage

```bash
git clone https://github.com/HDCE-inc/CVE-2023-38831
cd CVE-2023-38831
python exploit.py
```

# Reference

https://hdce.medium.com/cve-2023-38831-winrar-zero-day-poses-new-risks-for-traders-684911befad2

https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/
File Snapshot

[4.0K] /data/pocs/62230485043f27666efdab0f7e12d0c6583e1ac2 ├── [ 0] document.pdf ├── [1.3K] exploit.py ├── [1.3K] README.md └── [ 9] script.bat 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →