CVE-2022-25765

HIGH

pdfkit < 0.8.7.2 - Command Injection via URL Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 13 public exploits for CVE-2022-25765. PoCs published by UNICORD, UNICORDev, PurpleWaveIO.

AI-analyzed exploit summary This exploit demonstrates command injection in pdfkit versions 0.0.0 to 0.8.7.2 by crafting a malicious URL that executes arbitrary commands when processed by the vulnerable library. It supports both direct command execution and reverse shell payloads, with optional web-based delivery via POST requests.

Description

The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.

Exploits (13)

exploitdb WORKING POC VERIFIED
by UNICORD · pythonlocalruby
https://www.exploit-db.com/exploits/51293

This exploit demonstrates command injection in pdfkit versions 0.0.0 to 0.8.7.2 by crafting a malicious URL that executes arbitrary commands when processed by the vulnerable library. It supports both direct command execution and reverse shell payloads, with optional web-based delivery via POST requests.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit (0.0.0-0.8.7.2)
No auth needed
Prerequisites: Vulnerable pdfkit installation · Ability to pass crafted URL to the library
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 27 stars
by UNICORDev · poc
https://github.com/UNICORDev/exploit-CVE-2022-25765

This repository contains a Python-based exploit for CVE-2022-25765, a command injection vulnerability in the pdfkit Ruby gem. The exploit allows for custom command execution or reverse shell generation, targeting vulnerable versions of pdfkit (< 0.8.7.2).

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit Ruby gem versions < 0.8.7.2
No auth needed
Prerequisites: Python 3 · requests library · urllib3 library · vulnerable pdfkit installation
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 20 stars
by PurpleWaveIO · poc
https://github.com/PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell

This PoC demonstrates a command injection vulnerability in pdfkit versions before 0.8.6, where unsanitized URL input allows arbitrary command execution via a reverse shell. The exploit leverages Ruby's socket library to spawn a shell connected to a remote listener.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit < 0.8.6
No auth needed
Prerequisites: HTTP server to host malicious payload · Netcat listener for reverse shell · Target application using vulnerable pdfkit version
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 15 stars
by shamo0 · poc
https://github.com/shamo0/PDFkit-CMD-Injection

This PoC demonstrates a command injection vulnerability in pdfkit versions <0.8.6, where unsanitized URL input allows arbitrary command execution via a crafted HTTP request. The exploit uses a Ruby reverse shell payload to achieve RCE.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit <0.8.6
No auth needed
Prerequisites: Network access to the target · A listening server for the reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 10 stars
by nikn0laty · poc
https://github.com/nikn0laty/PDFkit-CMD-Injection-CVE-2022-25765

This is a functional exploit for CVE-2022-25765, a command injection vulnerability in pdfkit versions prior to 0.8.6. It crafts a malicious HTTP request with a reverse shell payload to achieve remote code execution on the target system.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit < 0.8.6
No auth needed
Prerequisites: Target system running vulnerable pdfkit version · Network connectivity to the target · Listener set up on attacker's machine
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 3 stars
by LordRNA · poc
https://github.com/LordRNA/CVE-2022-25765

This PoC exploits CVE-2022-25765, a blind RCE vulnerability in a Ruby-based application. It allows command execution or reverse shell establishment via crafted payloads sent to the target URL.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Ruby-based application (specific version not specified)
No auth needed
Prerequisites: Target URL with vulnerable endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Jeanback1 · poc
https://github.com/Jeanback1/CVE-2022-25765-exploit

This repository contains a functional exploit for CVE-2022-25765, a command injection vulnerability in pdfkit (Ruby gem) versions < 0.8.7.2. The exploit leverages unsanitized URL input to execute arbitrary commands via shell metacharacters.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit (Ruby gem) < 0.8.7.2
No auth needed
Prerequisites: Vulnerable pdfkit installation · Ability to send crafted URL input to the application
devstral-2 · analyzed Jun 01, 2026 Full analysis →
gitlab WORKING POC
by lowercasenumbers · poc
https://gitlab.com/lowercasenumbers/cve-2022-25765

This repository contains a functional Python exploit for CVE-2022-25765, a command injection vulnerability in PDFKit versions < 0.8.7.2. The exploit leverages improper URL sanitization to inject shell commands via backticks, resulting in remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: PDFKit < 0.8.7.2
No auth needed
Prerequisites: Vulnerable PDFKit version · Ruby installed on target · Network access to target · Outbound connection allowed for reverse shell
devstral-2 · analyzed Feb 23, 2026 Full analysis →
nomisec WORKING POC
by lst15 · poc
https://github.com/lst15/pdfkit-cve-2022-25765

This PoC demonstrates a command injection vulnerability in pdfkit (CVE-2022-25765) where unsanitized URLs passed to wkhtmltopdf allow arbitrary command execution via shell metacharacters. The exploit supports both direct command execution and reverse shell payloads.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit (versions using wkhtmltopdf)
No auth needed
Prerequisites: Target application using vulnerable pdfkit version · Ability to control URL input to pdfkit
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by lowercasenumbers · poc
https://github.com/lowercasenumbers/CVE-2022-25765

This is a functional exploit for CVE-2022-25765, targeting a command injection vulnerability in PDFKit versions < 0.8.7.2. It leverages improper URL sanitization to execute arbitrary commands via shell metacharacters, resulting in a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: PDFKit < 0.8.7.2
No auth needed
Prerequisites: Vulnerable PDFKit version · Ruby installed on target · Network access to target · Outbound connection allowed for reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC
by dugisan3rd · pythonpoc
https://github.com/dugisan3rd/exploit/tree/main/cve-2022-25765

This repository contains a functional Python script that exploits CVE-2022-25765, a blind RCE vulnerability in pdfkit v0.8.6. The exploit sends a crafted HTTP POST request with a malicious URL parameter to execute arbitrary commands on the target system.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit v0.8.6
No auth needed
Prerequisites: Target system running pdfkit v0.8.6 · Network access to the target
devstral-2 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC
by lekosbelas · poc
https://github.com/lekosbelas/PDFkit-CMD-Injection

This PoC demonstrates a command injection vulnerability in the pdfkit package where unsanitized URL input allows arbitrary command execution. The exploit uses a crafted HTTP request to trigger a reverse shell via bash.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: pdfkit (versions from 0.0.0)
No auth needed
Prerequisites: Target running vulnerable pdfkit version · Network access to target · Listener setup for reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec STUB
by Wai-Yan-Kyaw · poc
https://github.com/Wai-Yan-Kyaw/PDFKitExploit

This is an incomplete exploit script for CVE-2022-25765, a Ruby PDFKit RCE vulnerability. It only includes argument parsing and lacks the actual exploitation logic.

Classification
Stub 80%
Attack Type
Rce
Complexity
Trivial
Reliability
Theoretical
Target: Ruby PDFKit (versions affected by CVE-2022-25765)
No auth needed
Prerequisites: Target URL with vulnerable PDFKit instance · Command to execute
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 7.3
EPSS 0.8871
EPSS Percentile 99.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Details

Status published
Products (5)
fedoraproject/fedora 35
fedoraproject/fedora 36
fedoraproject/fedora 37
pdfkit_project/pdfkit 0.0.0
rubygems/pdfkit 0 - 0.8.7.2RubyGems
Published Sep 09, 2022
Tracked Since Feb 18, 2026