PT-2026-50999 · Unknown · Php-Weasyprint
CVSS v3.1
8.1
High
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
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 software uses a case-sensitive blacklist to protect output filenames against the
phar:// stream wrapper. Because PHP stream wrappers are case-insensitive, using variations such as PHAR:// or Phar:// bypasses this check and reaches the fileExists() (file exists()) function within prepareOutput(). On PHP 7 (specifically 7.4+), this allows the deserialization of crafted PHAR archive metadata, which can lead to remote code execution.Recommendations
Update to version 2.6.0.
Exploit
Fix
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Php-Weasyprint