# CVE-2022-25765: Command Injection

- Severity: High 7.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 59.4%, higher than 99% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-09-09T05:00:15.097Z
- Modified: 2026-06-17T04:34:14.390Z
- Also known as: GHSA-rhwx-hjx2-x4qr
- Weaknesses: CWE-77
- Assigned by: snyk

## Description

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

(As written by CVE List.)

## Affected

- pdfkit: from 0.0.0 before unspecified
- pdfkit (RubyGems): before 0.8.7.2
- pdfkit_project pdfkit: from 0.0.0
- fedoraproject fedora: 35; 36; 37

## Every score

- snyk: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795> (exploit, third-party-advisory, web)
- <http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html> (exploit, web)
- <https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50> (third-party-advisory, web)
- <https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25765> (advisory)
- <https://github.com/pdfkit/pdfkit/issues/517> (web)
- <https://github.com/pdfkit/pdfkit/pull/519> (web)
- <https://github.com/pdfkit/pdfkit> (package)
- <https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58> (web)
- <https://github.com/pdfkit/pdfkit/releases/tag/v0.8.7> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdfkit/CVE-2022-25765.yml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT> (web)

## Sources

- CVE List: [CVE-2022-25765](https://www.cve.org/CVERecord?id=CVE-2022-25765), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-rhwx-hjx2-x4qr](https://github.com/advisories/GHSA-rhwx-hjx2-x4qr), CC-BY-4.0, modified 2024-02-19
- NVD: [CVE-2022-25765](https://nvd.nist.gov/vuln/detail/CVE-2022-25765), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25765 · Whole record: https://cve.day/CVE-2022-25765.json · Rebuilt by cve.day 2026-11-25T22:58:14.786Z
