PT-2026-50925 · Unknown · Php-Weasyprint

·

CVE-2026-49358

·

Published

2026-06-19

·

Updated

2026-06-26

CVSS v3.1

3.0

Low

VectorAV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L
Name of the Vulnerable Software and Affected Versions PhpWeasyPrint versions prior to 2.6.0
Description PhpWeasyPrint is a PHP library used for generating PDFs from HTML pages or URLs. The AbstractGenerator::$temporaryFiles public array allows any code with a reference to a generator instance to insert arbitrary file paths. Because the removeTemporaryFiles() function, which is called by destruct() and a registered shutdown function, executes unlink() on all entries in this array without verifying if the paths are within the designated temporary folder, an attacker can cause the deletion of arbitrary files upon script shutdown.
Recommendations Update to version 2.6.0.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-49358
GHSA-5G9F-CWWG-4P8G
GHSA-87QC-37CW-84H4

Affected Products

Php-Weasyprint