CVE-2026-17431
Last modified
CVE-2026-17431 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.58% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| MITHALDU | PDF::WebKit | <= 1.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-17431?
How severe is CVE-2026-17431?
How do I fix CVE-2026-17431?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-17422IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a …8.8
- CVE-2026-17423IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a …9.1
- CVE-2026-17424IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a …6.5
- CVE-2026-17425IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a …7.5
- CVE-2026-17429IBM Power Systems Firmware FW1120.00, FW1110.00 through FW11…8.1
- CVE-2026-1743A vulnerability has been found in DJI Mavic Mini, Air, Spark…3.1
- CVE-2026-17432A vulnerability was detected in NousResearch hermes-agent 20…5
- CVE-2026-17433A vulnerability was detected in nanocoai NanoClaw up to 2.0.…5.3
- CVE-2026-17434A flaw has been found in nanocoai NanoClaw up to 2.0.64. Aff…6.3
- CVE-2026-17435File::Rotate::Simple versions before 0.4.0 for Perl create t…2.5
- CVE-2026-17436IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a …9.8
- CVE-2026-17438IBM i 7.6, 7.5, 7.4, and 7.3 could allow a local attacker to…4.4
Are you affected by CVE-2026-17431?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
