CVE Explorer
CVE-2026-49358
PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, `AbstractGenerator::$temporaryFiles` is a public array, and `removeTemporaryFiles()` — invoked from `__destruct()` and from a registered shutdown function — calls `unlink()` on every entry without verifying that the path is contained within the temporary folder. Any code holding a reference to a generator instance can push an arbitrary path into the array and have it deleted on script shutd
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.6.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":3,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-73","description":"CWE-73: External Control of File Name or Path","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"name":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-87qc-37cw-84h4","tags":["x_refsource_MISC"],"url":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-87qc-37cw-84h4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/references/1
{"name":"https://github.com/pontedilana/php-weasyprint/commit/6d328ffd3bcb800c7c2e8a594b1bff0c099c9391","tags":["x_refsource_MISC"],"url":"https://github.com/pontedilana/php-weasyprint/commit/6d328ffd3bcb800c7c2e8a594b1bff0c099c9391"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/references/2
{"name":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0","tags":["x_refsource_MISC"],"url":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/references/3
{"name":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg-4p8g","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg-4p8g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg-4p8g"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:28bfd530e8e471239d858c636689025abe3ccff2cd197c2c1ec37a21062ad090 · sha256:a2217f9d2feef07c… · /containers/adp/0/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.