Vulnerability in Pdfkit Project
CVE-2022-25765
The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.425, 98.7th percentile (scored ); up from 0.416 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.416 · newest: 0.425 · change: +0.009
Affected products
- Pdfkit Project
- Fedoraproject Fedora — versions 35, 36, 37
- Pdfkit — versions 0.0.0
Public exploits and proof-of-concept code
12 public repositories with exploit or proof-of-concept code for this CVE:
- UNICORDev/exploit-CVE-2022-25765 (31 stars, last pushed 2025-09-12): Exploit for CVE-2022–25765 (pdfkit) - Command Injection
- PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell (20 stars, last pushed 2022-12-06): pdfkit <0.8.6 command injection shell. The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized. (Tested on ver 0.8.6) - CVE-2022-25765
- shamo0/PDFkit-CMD-Injection (16 stars, last pushed 2022-12-21): CVE-2022-25765 pdfkit <0.8.6 command injection.
- nikn0laty/PDFkit-CMD-Injection-CVE-2022-25765 (10 stars, last pushed 2023-01-29): Exploit for CVE-2022-25765 command injection in pdfkit < 0.8.6
- LordRNA/CVE-2022-25765 (3 stars, last pushed 2022-12-11): PoC for Blind RCE for CVE-2022-25765 (Tested in HTB - Precious Machine)
- innocentx0/CVE-2022-25765 (last pushed 2026-09-02): CVE-2022-25765 | pdfkit v0.8.6 Python PoC
- Jeanback1/CVE-2022-25765-exploit (last pushed 2026-05-31)
- lst15/pdfkit-cve-2022-25765 (last pushed 2025-12-11)
- lowercasenumbers/CVE-2022-25765 (last pushed 2025-11-19): Exploit for CVE-2022-25765
- lekosbelas/PDFkit-CMD-Injection (last pushed 2023-02-22): CVE-2022-25765 pdfkit 0.8.6 command injection.
2 more are listed on the interactive page.
Also mentioned in 17 other repositories (20142995/nuclei-templates, Anogota/Precious-, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795 (Exploit, Third Party Advisory)
- github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb#L44-L50 (Third Party Advisory)
- github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfk… (Third Party Advisory)
- FEDORA-2022-6da143f1a2 (vendor-advisory)
- FEDORA-2022-3ec8272e72 (vendor-advisory)
- FEDORA-2022-c0d55cd527 (vendor-advisory)
- packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html
This CVE has public exploit evidence. See the latest CVEs with public exploits.