Command injection in pdfkit
Priority HIGH 70CWE-77Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.
Why it matters now
EPSS 0.42503 98th percentileScored 2026-11-07
Fix Fixed pdfkit (RubyGems): 0.8.7.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | pdfkit | 0.0.0 and later | — | No fix listed | CNA |
| — | pdfkit (RubyGems) | before 0.8.7.2 | 0.8.7.2 | Patch available | GHSA-rhwx-hjx2-x4qr |
- pdfkit Vendor— Affected 0.0.0 and later Fixed in — No fix listed CNA
- pdfkit (RubyGems) Vendor— Affected before 0.8.7.2 Fixed in 0.8.7.2 Patch available GHSA-rhwx-hjx2-x4qr
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:pdfkit_project:pdfkit:*:*:*:*:*:ruby:*:* | 0.0.0 | Vulnerable | Pdfkit Project |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:pdfkit_project:pdfkit:*:*:*:*:*:ruby:*:* Versions 0.0.0 Vulnerable ·Pdfkit Project
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-rhwx-hjx2-x4qr pdfkit (RubyGems) Fixed in 0.8.7.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25765
- 2026-10-03 Alias added: GHSA-rhwx-hjx2-x4qr
References
Advisory 6
Other 10
- http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html
- https://github.com/pdfkit/pdfkit/issues/517
- https://github.com/pdfkit/pdfkit/pull/519
- https://github.com/pdfkit/pdfkit
- https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58
- https://github.com/pdfkit/pdfkit/releases/tag/v0.8.7
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdfkit/CVE-2022-25765.yml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT
Sources
- CVE-2022-25765 · CVE Program
- CVE-2022-25765 · NVD
- FIRST EPSS
- GHSA-rhwx-hjx2-x4qr · GitHub Advisory Database · CC BY 4.0
- CVE-2022-25765 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences