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.
CVE-2026-49260
This high-severity CVE scores 8.2 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.2%, top 95% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.2
- EG Score
- 8.2(medium)
- EPSS
- 4.9%
- KEV
- Not listed
Published
June 19, 2026
Last Modified
June 22, 2026
Advisory Details (4)
Auto-updated Jun 19, 2026php-weasyprint: shell command injection via configurable WeasyPrint binary path due to inverted is_executable() guard (mirror of KnpLabs/snappy GHSA-vpr4-p6fq-85jc) · Advisory · pontedilana/php-weasyprint · GitHub
Affected: 2.5.1
https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-f5gc-qxf8-mh9g2.5.1
Patch available: pontedilana/php-weasyprint 2.5.1
https://github.com/pontedilana/php-weasyprint/releases/tag/2.5.1commit 9e86a2b31723 (pontedilana/php-weasyprint)
Patch available: pontedilana/php-weasyprint 2.5.1 (contains commit 9e86a2b31723)
https://github.com/pontedilana/php-weasyprint/commit/9e86a2b317237fc5728f712f5037164530117f7eBinary path is never shell-escaped due to an inverted is_executable check · Advisory · KnpLabs/snappy · GitHub
https://github.com/KnpLabs/snappy/security/advisories/GHSA-vpr4-p6fq-85jcVendor Advisories for CVE-2026-49260(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 21× in last 7d / 54× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 07:01 UTCEG score recompute
- 2026-07-06 18:58 UTCEG score recompute
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 06:26 UTCEG score recompute
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 18:49 UTCEG score recompute
- 2026-07-05 07:14 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 19:27 UTCEG score recompute
- 2026-07-04 07:50 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 20:00 UTCEG score recompute
- 2026-07-03 08:25 UTCEG score recompute
- 2026-07-02 20:48 UTCEG score recompute
- 2026-07-02 09:09 UTCEG score recompute
- 2026-07-01 21:34 UTCEG score recompute
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 09:58 UTCEG score recompute
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 22:22 UTCEG score recompute
- 2026-06-30 10:47 UTCEG score recompute
- 2026-06-29 23:09 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 11:34 UTCEG score recompute
Show 29 moreShow fewer
- 2026-06-28 23:58 UTCEG score recompute
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 12:22 UTCEG score recompute
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 00:47 UTCEG score recompute
- 2026-06-27 13:12 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-27 01:37 UTCEG score recompute
- 2026-06-26 14:00 UTCEG score recompute
- 2026-06-26 02:25 UTCEG score recompute
- 2026-06-25 14:50 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 03:14 UTCEG score recompute
- 2026-06-24 15:39 UTCEG score recompute
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 04:04 UTCEG score recompute
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 16:24 UTCEG score recompute
- 2026-06-23 04:49 UTCEG score recompute
- 2026-06-22 17:09 UTCEG score recompute
- 2026-06-22 05:33 UTCEG score recompute
- 2026-06-21 17:57 UTCEG score recompute
- 2026-06-21 06:19 UTCEG score recompute
- 2026-06-20 18:40 UTCEG score recompute
- 2026-06-20 07:02 UTCEG score recompute
- 2026-06-19 19:14 UTCEG score recompute
- 2026-06-19 19:14 UTCNVD updatefirst tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-78
Frequently asked(5)
What is CVE-2026-49260?
When was CVE-2026-49260 disclosed?
Is CVE-2026-49260 actively exploited?
What is the CVSS score of CVE-2026-49260?
How do I remediate CVE-2026-49260?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-49260
Is Your Infrastructure Affected by CVE-2026-49260?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.