CVE-2022-25765 in the critical feed json
Command Injection
published 2022-09-09 4 y ago modified 2026-06-17 4 mo ago also GHSA-rhwx-hjx2-x4qr , EUVD-2022-6937
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 42.5%
- EPSS 42.5% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Exploit-DB
Summary
The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.
Patch / fix
- rubygems pdfkit 0.8.7.2
- github.com/pdfkit/pdfkit#519 pull request
- github.com/pdfkit/pdfkit/releases/tag/v0.8.7 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25765 updated
rubygem-pdfkit: pdfkit are vulnerable to Command Injection where the URL is not properly sanitized.
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-51293)
Exploit prediction
42.50% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-51293 pdfkit v0.8.7.2 - Command Injection local, 2023-04-06
- security.snyk.io https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | pdfkit | <0.8.7.2 |
0.8.7.2 |
Affected products
- n/a pdfkit
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
github.com
/pdfkit/pdfkit/pull/519
web
-
security.snyk.io
/vuln/SNYK-RUBY-PDFKIT-2869795
web, exploit, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ/
vendor-advisory
-
github.com
/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50
web, third-party-advisory
-
github.com
/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58
web, third-party-advisory
-
packetstormsecurity.com
/files/171746/pdfkit-0.8.7.2-Command-Injection.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-25765
advisory
-
github.com
/pdfkit/pdfkit/issues/517
web
-
github.com
/pdfkit/pdfkit
package
-
github.com
/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58
web
-
github.com
/pdfkit/pdfkit/releases/tag/v0.8.7
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/pdfkit/CVE-2022-25765.yml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT
web
Sources
- CVE List CVE-2022-25765
- GitHub Advisory GHSA-rhwx-hjx2-x4qr
- NVD CVE-2022-25765
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.