Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-49286— PhpWeasyPrint vulnerable to PHAR deserialization via output filename (CVE-2023-28115 case-insensitive bypass)

CVSS 8.1 · High EPSS 0.56% · P42

Affected Version Matrix 1

VendorProductVersion RangeStatus
pontedilanaphp-weasyprint< 2.6.0affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-49286

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PhpWeasyPrint vulnerable to PHAR deserialization via output filename (CVE-2023-28115 case-insensitive bypass)
Source: NVD (National Vulnerability Database)
Vulnerability Description
PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, `pontedilana/php-weasyprint` guarded the output filename against the `phar://` stream wrapper with a case-sensitive blacklist. PHP stream wrappers are case-insensitive, so `PHAR://`, `Phar://`, etc. bypass the check and reach `fileExists()` (`file_exists()`) in `prepareOutput()`. On PHP 7 (which the library still supports — PHP 7.4+), this triggers deserialization of a crafted PHAR archive's metadata, leading to remote code execution. This is the patch-bypass of CVE-2023-28115. The same issue and fix were handled upstream in KnpLabs/snappy (GHSA-92rv-4j2h-8mjj). PhpWeasyPrint version 2.6.0 contains a patch for the issue.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
可信数据的反序列化
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
pontedilanaphp-weasyprint < 2.6.0 -

II. Public POCs for CVE-2026-49286

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49286

登录查看更多情报信息。

Patches & Fixes for CVE-2026-49286 (1)

Vendor Advisories for CVE-2026-49286 (2)

Other References for CVE-2026-49286 (1)

Same Patch Batch · pontedilana · 2026-06-19 · 4 CVEs total

CVE-2026-492608.2 HIGHPhpWeasyPrint: shell command injection via configurable WeasyPrint binary path due to inve
CVE-2026-493596.5 MEDIUMPhpWeasyPrint vulnerable to SSRF and local file disclosure via the attachment option
CVE-2026-493583.0 LOWPhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles

IV. Related Vulnerabilities

V. Comments for CVE-2026-49286

No comments yet


Leave a comment