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
imbyter-WinRAR_CVE-2023-38831 — PoC exploit for WinRAR CVE-2023-38831 with Python script to generate malicious archives that execute arbitrary code via spoofed file extensions. | Kitploit
Tools/GitHubGitHub/imbyter/imbyter-winrar_cve-2023-38831
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubimbyter/imbyter-winrar_cve-2023-38831

imbyter-WinRAR_CVE-2023-38831

PoC exploit for WinRAR CVE-2023-38831 with Python script to generate malicious archives that execute arbitrary code via spoofed file extensions.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
22 years agoNot yet reviewed
Share

💥 WinRAR Vulnerability Description (CVE-2023-38831)

A spoofable file extension vulnerability exists in WinRAR versions prior to 6.23. Attackers can exploit this vulnerability by crafting specially packaged files that appear harmless, such as JPG (.jpg) image files, text files (.txt), or PDF documents (.pdf), and then trick users into opening these files directly without decompression, thereby successfully executing arbitrary code on the victim's machine.

  • Vulnerability ID: CVE-2023-38831
  • Vulnerability Type: Logic vulnerability
  • Software Name: RARLAB WinRAR
  • Module Name: WinRAR.exe
  • Historical Vulnerabilities: According to search results from https://vuldb.com, there are not many historical vulnerabilities, and even fewer that can be reliably exploited.
  • Affected Versions: Version < 6.23 (Tested: 5.x versions are not affected)

🧨 Test POC Archive

File: test.zip

This is a pre-built archive containing the CVE-2023-38831 vulnerability. When directly opening 2.jpg inside the archive using WinRAR version < 6.23, it will execute the bat script within the archive. The content of the bat script is as follows:

root@kitploit:~
echo off
mshta vbscript:msgbox("你电脑已经被我控制!!!",64,"被黑了")(window.close)
shutdown -s -t 60

After a successful test, a shutdown prompt will appear. Enter shutdown -a in the command prompt to cancel the shutdown task.

Screenshot

🧑‍💻 Python Code

File: make-poc.py

Used to automatically convert the input files into a POC archive.

🥝 Detailed Explanation

See: https://flowus.cn/share/a3b35db0-ab5e-4abc-b8d3-5ff284e82e7b

Download Tool