Catalyst::View::Wkhtmltopdf versions before 0.6.1 for Perl allow shell command injection (RCE) via PDF render options
Summary
| CVE | CVE-2026-16766 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-25 09:16:32 UTC |
| Updated | 2026-07-25 19:16:51 UTC |
| Description | Catalyst::View::Wkhtmltopdf versions before 0.6.1 for Perl allow shell command injection (RCE) via PDF render options. Options are passed directly to the wkhtmltopdf command without sanitization. Any web application that passes user-controlled options such as the page_size, orientation or margins without validation allows shell command injection. Version 0.6.0 was released with an incomplete fix for this issue. Note that the wkhtmltopdf project is no longer being developed, and users of this package should migrate to alternative solutions. |
Risk And Classification
Problem Types: CWE-78 | CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | RRWO | CatalystViewWkhtmltopdf | affected 0.6.1 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.openwall.com/lists/oss-security/2026/07/25/4 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| github.com/robrwo/Catalyst-View-Wkhtmltopdf/security/advisories/GHSA-42w... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| metacpan.org/release/RRWO/Catalyst-View-Wkhtmltopdf-v0.6.1/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| github.com/mc7244/Catalyst-View-Wkhtmltopdf/issues/6 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
Solutions
CNA: Upgrade to Catalyst::View::Wkhtmltopdf version 0.6.1 or later.
Workarounds
CNA: For deployments that cannot upgrade, ensure the application does not allow unvalidated wkhtmltopdf options to be submitted.
There are currently no legacy QID mappings associated with this CVE.