{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-17431","id":"CVE-2026-17431","title":"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","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.\n\nto_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 P","descriptionLong":"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.\n\nto_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.\n\nAny 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.","published":"2026-08-12T23:12:57.958Z","updated":"2026-10-28T02:30:34.234661397Z","reserved":"2026-07-25T08:39:34.495Z","status":"Deferred","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["MITHALDU PDF::WebKit"],"affectedProducts":[{"vendor":"MITHALDU","product":"PDF::WebKit","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"1.2","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-78","CWE-73"],"aliases":[],"references":[{"url":"https://github.com/kingpong/perl-PDF-WebKit/issues/8","tags":["issue-tracking","report"]},{"url":"https://security.metacpan.org/patches/P/PDF-WebKit/1.2/CVE-2026-17431-r1.patch","tags":["patch","fix"]},{"url":"https://wkhtmltopdf.org/status.html","tags":["web"]},{"url":"http://www.openwall.com/lists/oss-security/2026/08/13/3","tags":["web"]},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/17xxx/CVE-2026-17431.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-17431","tags":["advisory"]},{"url":"https://github.com/kingpong/perl-PDF-WebKit","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00947,"epssPercentile":0.61888,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-17431","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-17431","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-17431","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-17431","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["safari-webkit"],"critical":[],"attention":null}