{"id":"CVE-2022-25765","aliases":["CVE-2022-25765","GHSA-rhwx-hjx2-x4qr"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection","summary":"The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.","source":"cvelist"},{"lang":"en","text":"The package pdfkit is vulnerable to Command Injection where the URL is not properly sanitized.\n\nNote: This issue was patched in 0.8.7.2, but the patch was discovered to be ineffective. The updated patch version is 0.8.7.2.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete pdfkit a partir de la versión 0.0.0, es vulnerable a una inyección de comandos cuando la URL no está saneada apropiadamente","source":"nvd"}],"published":"2022-09-09T05:00:15.097Z","modified":"2026-06-17T04:34:14.390Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"custom","introduced":"0.0.0","fixed":"unspecified","status":"affected"}],"product":"pdfkit","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.8.7.2"}],"ecosystem":"RubyGems","package":"pdfkit","purl":"pkg:gem/pdfkit","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.0.0"}],"vendor":"pdfkit_project","product":"pdfkit","cpe":"cpe:2.3:a:pdfkit_project:pdfkit:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"},{"status":"affected","version":"36"},{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25765","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pdfkit/pdfkit/issues/517","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pdfkit/pdfkit/pull/519","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pdfkit/pdfkit","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pdfkit/pdfkit/releases/tag/v0.8.7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdfkit/CVE-2022-25765.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT","tags":["web"],"sources":["ghsa"]}],"credits":["Benoit Côté-Jodoin"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25765","url":"https://www.cve.org/CVERecord?id=CVE-2022-25765","licence":"CVE Terms of Use","modified":"2024-09-16T16:47:50.441Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rhwx-hjx2-x4qr","url":"https://github.com/advisories/GHSA-rhwx-hjx2-x4qr","licence":"CC-BY-4.0","modified":"2024-02-19T05:23:14.114Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25765","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25765","licence":"Public domain","modified":"2026-06-17T04:34:14.390Z"}],"updatedAt":"2026-11-25T22:58:14.786Z","epss":{"score":0.5943,"percentile":0.99343,"date":"2026-11-30T12:00:22.000Z"}}