Feed
9.8CRITICAL
CVE-2022-25765PDFKit vulnerable to Command Injection
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 59.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 59.4%
- percentile 99%
- Fix
- Named by a source
- CVE published 9 Sept 2022
Needs attention
- EPSS up by 10 percentage points or more in about a week
EPSS 59.4% (+50) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- pdfkit (RubyGems): upgrade to 0.8.7.2 or later on your release line.
- Commit / pull request: https://github.com/pdfkit/pdfkit/pull/519
Who should check
pdfkit (RubyGems) pkg:gem/pdfkit
- Affected< 0.8.7.2Fixed in0.8.7.2OSV (GHSA-rhwx-hjx2-x4qr)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-rhwx-hjx2-x4qr)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-77
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)The package pdfkit is vulnerable to Command Injection where the URL is not properly sanitized. Note: 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.
Update history
- 24 Nov 2026Exploitation more likely 42.5% → 70.6%
- 25 Nov 2025Exploitation more likely 71.4% → 88.9%
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-25765
- otherhttps://github.com/pdfkit/pdfkit/issues/517
- commit / pull requesthttps://github.com/pdfkit/pdfkit/pull/519
- otherhttps://github.com/pdfkit/pdfkit
- otherhttps://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58
- otherhttps://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58
- otherhttps://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50
- otherhttps://github.com/pdfkit/pdfkit/releases/tag/v0.8.7
- otherhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdfkit/CVE-2022-25765.yml
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT
- otherhttps://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795
- otherhttp://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-rhwx-hjx2-x4qr (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 70 min ago · osv 56 min ago · nvd 89 min ago · epss 57 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-rhwx-hjx2-x4qr