PT-2026-50999 · Unknown · Php-Weasyprint

·

CVE-2026-49286

·

Published

2023-09-08

·

Updated

2026-06-26

CVSS v3.1

8.1

High

VectorAV: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

CVE-2026-49286
GHSA-2FMJ-P74R-3WJM
GHSA-92RV-4J2H-8MJJ

Affected Products

Php-Weasyprint