{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-49260","published":"2026-06-19T17:16:29.477000Z","last_modified":"2026-10-25T23:10:00.167000Z","status":"Deferred","cvss":{"version":"3.1","score":8.2,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-78"],"cpes":[],"cpes_truncated":false,"vendors":["pontedilana"],"products":["pontedilana/php-weasyprint"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-f5gc-qxf8-mh9g","ecosystem":"Packagist","name":"pontedilana/php-weasyprint","purl":"pkg:composer/pontedilana/php-weasyprint","ranges":[{"introduced":"0","fixed":"2.5.1"}],"versions":["0.10.0","0.10.1","0.11.0","0.12.0","0.13.0","0.9.0","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.3.0","1.4.0","1.5.0","2.0.0","2.1.0","2.2.0","2.3.0","2.4.0","2.5.0"],"versions_truncated":false}],"severity":"high","priority_score":49,"links":{"html_es":"/es/cve/CVE-2026-49260/","html_en":"/en/cve/CVE-2026-49260/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-49260","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-49260"},"untrusted":{"vendor_name":"pontedilana","product_name":"php-weasyprint","desc_en":"PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.5.1, `pontedilana/php-weasyprint` builds the shell command for WeasyPrint by passing the binary path through `escapeshellarg()` first and then checking the *quoted* result with `is_executable()`. On POSIX `escapeshellarg('/usr/local/bin/weasyprint')` returns `'/usr/local/bin/weasyprint'` with the single-quote characters as part of the string, so `is_executable()` looks for a file whose actual name includes those quotes. That file never exists, the \"safe\" branch is dead code, and the raw `$binary` string (set via the constructor or `setBinary()`) flows directly into `Symfony\\Component\\Process\\Process::fromShellCommandline()`. Any deployment whose binary path is sourced from configuration, an environment variable, or a per-tenant setting reaches a shell-command-injection sink. The library is documented as a one-to-one substitute for KnpLabs/snappy and inherited the exact pre-fix codepath KnpLabs patched in GHSA-vpr4-p6fq-85jc. PhpWeasyPrint version 2.5.1 contains a patch for the issue.","affected":[{"untrusted_vendor":"pontedilana","untrusted_product":"php-weasyprint","versions":[]}],"references":[{"url":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-vpr4-p6fq-85jc","tags":[]},{"url":"https://github.com/pontedilana/php-weasyprint/commit/9e86a2b317237fc5728f712f5037164530117f7e","tags":[]},{"url":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.5.1","tags":[]},{"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-f5gc-qxf8-mh9g","tags":[]}]}}