漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
PhpWeasyPrint vulnerable to PHAR deserialization via output filename (CVE-2023-28115 case-insensitive bypass)
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.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
可信数据的反序列化
Vulnerability Title
Pontedilana PhpWeasyPrint 反序列化漏洞
Vulnerability Description
Pontedilana PhpWeasyPrint是Pontedilana公司开源的一个 PHP 库,作为 WeasyPrint 的封装器,支持从 URL 或 HTML 页面生成 PDF 文档,API 设计兼容 KnpLabs/snappy。 Pontedilana PhpWeasyPrint 2.6.0之前版本存在反序列化漏洞,该漏洞源于对输出文件名的校验存在大小写敏感问题,导致攻击者可利用PHP流包装器大小写不敏感的特性绕过检查,通过特制的PHAR存档元数据出发反序列化,导致远程代码执行。
CVSS Information
N/A
Vulnerability Type
N/A