CVE Explorer
CVE-2026-49260
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 na
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"php-weasyprint","vendor":"pontedilana","versions":[{"status":"affected","version":"< 2.5.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/problemTypes/0/descriptions/0
Source references
6 source assertions{"name":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-vpr4-p6fq-85jc","tags":["x_refsource_MISC"],"url":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-vpr4-p6fq-85jc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/references/1
{"tags":["exploit"],"url":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-vpr4-p6fq-85jc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/adp/0/references/0
{"name":"https://github.com/pontedilana/php-weasyprint/commit/9e86a2b317237fc5728f712f5037164530117f7e","tags":["x_refsource_MISC"],"url":"https://github.com/pontedilana/php-weasyprint/commit/9e86a2b317237fc5728f712f5037164530117f7e"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/references/2
{"name":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.5.1","tags":["x_refsource_MISC"],"url":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.5.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/references/3
{"tags":["exploit"],"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-f5gc-qxf8-mh9g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/adp/0/references/1
{"name":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-f5gc-qxf8-mh9g","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-f5gc-qxf8-mh9g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d9f6a419b9efe6e503c9b2e6ceb01d2dd1328096b3a26d71b7ea6d0a32bbd885 · sha256:4a69aa7368ed867a… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.