Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted pipe-flanked path via application input
-
DeliveryApplication forwards unsanitized value to PDF::WebKit
-
Exploit`to_pdf` assigns path to @ARGV and calls diamond operator
-
ExecutionPerl 2-arg open() interprets metacharacter as shell invocation
-
PersistOS command executes under process UID
-
ImpactExfiltrate output or overwrite filesystem files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a calling application to forward untrusted input - from a user, HTTP request, API parameter, or external data source - without sanitization as the |
| Impact | The provided CVSS 3.1 score of 6.1 with vector AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N is conservative. The AV:L (local) classification reflects the library nature of the component, but in typical deployments where PDF::WebKit is invoked by a web application that forwards user-supplied filenames, the effective attack vector is network-reachable - making the real-world risk materially higher than the base score indicates. The I:H rating is well-justified: successful exploitation yields arbitrary command execution under the process UID, and depending on the privilege level of the web server process, this can escalate to full host compromise. No EPSS score was provided in the intelligence data, preventing quantitative exploitation probability assessment. The vulnerability is absent from CISA KEV, suggesting no confirmed widespread exploitation to date. Attack complexity is genuinely low once path control is achieved - the Perl metacharacter behavior is predictable and requires no special knowledge or tooling. The primary real-world barrier is application-level: only callers that forward unsanitized user input to these functions are exploitable, meaning applications that generate paths internally (e.g., via |
| Exploit ScenarioDerived | An attacker submits a crafted string such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
OS command injection in PDF::WebKit for Perl (versions through 1.2) allows arbitrary command execution under the process UID when untrusted input is forwarded as an output path or stylesheet path to to_pdf, to_file, or _style_tag_for. The root cause is Perl's 2-arg open() combined with the diamond operator, which interprets pipe-flanked strings (| cmd or cmd |) as shell commands and redirect-prefixed strings (> path) as file write operations rather than filenames. No public exploit code has been confirmed and the vulnerability is not listed in CISA KEV at time of analysis, but the technique exploits well-documented Perl behavior making reproduction trivial for any developer familiar with the language.
RemediationAI
Apply the CPANSec patch for PDF::WebKit 1.2 available at https://security.metacpan.org/patches/P/PDF-WebKit/1.2/CVE-2026-17431-r1.patch - no specific patched release version number was independently confirmed in the available data, so monitor the CPAN distribution at https://metacpan.org/ for a formal updated release. As a compensating control until a patched release is available, sanitize all path arguments before passing them to to_pdf, to_file, or _style_tag_for: reject any value containing a leading or trailing pipe character (|) or a leading > or >> using an explicit denylist, or preferably apply an allowlist permitting only safe filesystem path characters. Generate output paths internally using File::Temp rather than accepting them from user input, which eliminates the output path injection vector entirely. Restrict the UID of the process running PDF::WebKit to the minimum necessary privilege level to limit blast radius if injection occurs. For stylesheet injection specifically, resolve stylesheet references to pre-approved absolute paths at the application layer rather than forwarding raw user input.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PDF::WebKit (CPE: cpe:2.3:a:mithaldu:pdf::webkit:*:*:*:*:*:*:*:*) is a Perl CPAN module wrapping the wkhtmltopdf HTML-to-PDF renderer - notably, wkhtmltopdf itself is archived and unmaintained per its own status page (https://wkhtmltopdf.org/status.html), adding an upstream maintenance concern. The vulnerability is a textbook CWE-78 (Improper Neutralization of Special Elements Used in an OS Command) caused by misuse of Perl's 2-arg open(). The to_pdf function assigns the output path to @ARGV and reads it with the diamond operator (<>), which internally calls 2-arg open() on each element; _style_tag_for does the same for each stylesheet path. In Perl, 2-arg open() performs shell metacharacter expansion: a value ending with | spawns a read pipe to a command (returning its stdout in place of file content), a value beginning with | spawns a write pipe, and > or >> prefixes open the named file for write or append. The canonical fix is to replace 2-arg open() with 3-arg open(my $fh, '<', $path) or sysopen(), which treat the path as a literal filename with no metacharacter interpretation.
Know when Pdf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
AV:N reflects worst-case deployment in web applications where network-supplied input reaches path arguments; PR:N and UI:N because the attacker's HTTP request alone triggers exploitation without requiring any local access or victim interaction.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.org
PDF::WebKit versions through 1.2 for Perl allow OS command injection via a 2-arg open() of the output path in to_pdf and of stylesheet paths in _style_tag_for.
to_pdf reads the generated PDF back from its path argument, and _style_tag_for reads each entry of the stylesheets list, by assigning the path to a local @ARGV and reading it with the diamond operator, which opens each @ARGV element with Perl's 2-arg open(). A value that begins or ends with a pipe ("| cmd", "cmd |") is run as a command rather than opened as a file, and one that begins with a redirect ("> path", ">> path") opens that path for write or append. to_file forwards its path argument to to_pdf and reaches the same read.
Any caller that forwards untrusted input as the output path or as a stylesheets entry can run a command under the process UID; with the "cmd |" form the command's output is returned in place of the PDF, and with the "> path" form the named file is truncated. Stylesheets may only be added to an HTML source, so a URL or file source exposes the output path alone.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Argument injection in PDF::WebKit through version 1.2 (Perl module, CPE mithaldu:pdf::webkit) lets an attacker who contr
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to cause a denial of service or possibly ha
IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to cause a denial of service or possibly ha
EUVD-2026-57696
GHSA-56v3-4wcg-g28h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB