{"id":"CVE-2022-25765","published":"2022-09-09T05:00:15Z","modified":"2024-09-16T16:47:50Z","title":"Command Injection","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":"n/a","product":"pdfkit","versions":[">= 0.0.0, < unspecified"]}],"description":{"text":"The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.","provenance":"source","from":"CVE.org"},"summary":{"text":"The pdfkit package, from version 0.0.0, contains a command injection flaw in how it handles URLs, which are not properly sanitized before use. An attacker can exploit this over the network without authentication or user interaction by supplying a crafted URL, and it can lead to limited loss of confidentiality, integrity, and availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:28:16Z"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.70635,"percentile":0.994,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":36,"pulses":[{"name":"TTB-Chained (Tehran-Transversal Belasco Chain) - Credit MSUDOSOS","url":"https://otx.alienvault.com/pulse/6a50563418e298cf25e320fc","created":"2026-07-10"},{"name":"A Man On A Journey: I hope you get lost.","url":"https://otx.alienvault.com/pulse/6a3506a6504ca28340cbd5d6","created":"2026-06-19"},{"name":"A Man On A Journey: I hope you get lost.","url":"https://otx.alienvault.com/pulse/6a3506a436685c1c0bc31fef","created":"2026-06-19"},{"name":"From 1 day to 0 day * Jan, 2016.","url":"https://otx.alienvault.com/pulse/6a34fcf00919e0617ce229ff","created":"2026-06-19"},{"name":"From 1 day to 0 day * Jan, 2016.","url":"https://otx.alienvault.com/pulse/6a34fcec2abe1cdb6923ba25","created":"2026-06-19"},{"name":"From 1 day to 0 day * Jan, 2016.","url":"https://otx.alienvault.com/pulse/6a34fcec8f2133c0e1cde59d","created":"2026-06-19"},{"name":"Trust Bypass and Cryptographic Integrity: Have we lost a safe baseline forever? - VirusTotal report                    for software.exe","url":"https://otx.alienvault.com/pulse/6a34f2b1f362424f0edb5f66","created":"2026-06-19"},{"name":"Trust Bypass and Cryptographic Integrity: Have we lost a safe baseline forever? - VirusTotal report                    for software.exe","url":"https://otx.alienvault.com/pulse/6a34f2b06dbb1b636b47f0e3","created":"2026-06-19"},{"name":"Trust Bypass and Cryptographic Integrity: Have we lost a safe baseline forever? - VirusTotal report                    for software.exe","url":"https://otx.alienvault.com/pulse/6a34f2ae91ec0796ed29326e","created":"2026-06-19"},{"name":"Trust Bypass and Cryptographic Integrity: Have we lost a safe baseline forever? - VirusTotal report                    for software.exe","url":"https://otx.alienvault.com/pulse/6a34f2ad2a355bbbb43b5451","created":"2026-06-19"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795","tags":[]},{"url":"https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50","tags":[]},{"url":"https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ/","tags":["vendor-advisory"]},{"url":"http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"RubyGems","package":"pdfkit","vulnerableRanges":["<0.8.7.2"],"patched":["0.8.7.2"],"from":["GHSA-rhwx-hjx2-x4qr"],"provenance":"source"}],"advisories":[{"id":"GHSA-rhwx-hjx2-x4qr","url":"https://github.com/advisories/GHSA-rhwx-hjx2-x4qr","severity":"CRITICAL","ecosystem":"RubyGems","package":"pdfkit","vulnerableRanges":["<0.8.7.2"],"patched":["0.8.7.2"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-6937","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-6937","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":51293,"url":"https://www.exploit-db.com/exploits/51293","title":"pdfkit 0.8.7.2 - Command Injection","type":"local","platform":"ruby","date":"2023-04-06","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2023-04-06"},"pocGithub":{"count":9,"skipped":1,"earliest":"2022-12-04","earliestUrl":"https://github.com/PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell","repos":[{"name":"UNICORDev/exploit-CVE-2022-25765","url":"https://github.com/UNICORDev/exploit-CVE-2022-25765","stars":31,"created":"2023-02-10"},{"name":"PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell","url":"https://github.com/PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell","stars":20,"created":"2022-12-04"},{"name":"shamo0/PDFkit-CMD-Injection","url":"https://github.com/shamo0/PDFkit-CMD-Injection","stars":16,"created":"2022-12-20"},{"name":"nikn0laty/PDFkit-CMD-Injection-CVE-2022-25765","url":"https://github.com/nikn0laty/PDFkit-CMD-Injection-CVE-2022-25765","stars":10,"created":"2023-01-29"},{"name":"LordRNA/CVE-2022-25765","url":"https://github.com/LordRNA/CVE-2022-25765","stars":3,"created":"2022-12-11"}]},"first":{"date":"2022-12-04","source":"PoC-in-GitHub","url":"https://github.com/PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html"],"flow":[],"timeline":[{"date":"2022-09-09","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-25765","provenance":"source"},{"date":"2022-12-04","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub; later: Exploit-DB 2023-04-06","url":"https://github.com/PurpleWaveIO/CVE-2022-25765-pdfkit-Exploit-Reverse-Shell","provenance":"source"}],"speed":{"daysToPublicExploit":86,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":33.0,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.88,"detail":"percentile 0.9940"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 NVD exploit link; 9 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"36 pulses"},{"name":"CVSS severity","points":5.11,"detail":"base score 7.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}