目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-45034— PHPOffice PhpSpreadsheet 反序列化注入漏洞

一分钟漏洞结论

影响对象
PHPOffice PhpSpreadsheet
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

PHPOffice PhpSpreadsheet是PHPOffice组织开源的一款用于读取和写入电子表格文件的PHP库。 PHPOffice PhpSpreadsheet 1.30.5之前版本存在反序列化注入漏洞,该漏洞源于File::prohibitWrappers辅助函数中parse_url函数对带有三个或以上斜杠的phar:///格式调用返回false,从而绕过流包装器检查,可能导致通过phar元数据自动反序列化触发远程代码执行。

AI 预测 9.8 利用难度: 较易 EPSS 0.46% · P38

影响版本矩阵 1

厂商产品 版本范围状态
PHPOffice PhpSpreadsheet < 1.30.5 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-45034 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
PhpSpreadsheet: File::prohibitWrappers bypass
来源: CVE Program / CVE List V5
Vulnerability Description
PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.5, CVE-2026-34084 was patched by the helper File::prohibitWrappers. The helper calls parse_url($filename, PHP_URL_SCHEME) and then checks is_string($scheme) && strlen($scheme) > 1 to reject stream wrappers such as phar://, php://, data:// or expect://. The check is not equivalent to "does the path contain a wrapper". When the input has the form phar:///path/file.phar/inner with three or more slashes after the scheme, parse_url returns boolean false instead of returning the scheme string. The is_string($scheme) branch is therefore skipped, the helper returns without throwing, and the caller proceeds. PHP's stream layer, however, still treats phar:///... as a valid phar wrapper and opens the underlying phar file. The result is that IOFactory::load($attackerPath) walks past the patch and still touches the phar wrapper. On PHP 7.x, simply reaching the phar wrapper via is_file is enough for PHP to automatically deserialize the phar metadata, which in turn invokes the magic methods __wakeup and __destruct of an attacker controlled object and gives full RCE. On PHP 8.x, automatic metadata deserialization for plain file ops was removed, so the chain at the PhpSpreadsheet layer reduces to a phar wrapper file read primitive, and RCE only resurfaces if the downstream consumer ever calls Phar::getMetadata. This vulnerability is fixed in 1.30.5.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
可信数据的反序列化
来源: CVE Program / CVE List V5
Vulnerability Title
PHPOffice PhpSpreadsheet 反序列化注入漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
PHPOffice PhpSpreadsheet是PHPOffice组织开源的一款用于读取和写入电子表格文件的PHP库。 PHPOffice PhpSpreadsheet 1.30.5之前版本存在反序列化注入漏洞,该漏洞源于File::prohibitWrappers辅助函数中parse_url函数对带有三个或以上斜杠的phar:///格式调用返回false,从而绕过流包装器检查,可能导致通过phar元数据自动反序列化触发远程代码执行。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
PHPOffice PhpSpreadsheet < 1.30.5 -

二、漏洞 CVE-2026-45034 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-45034 的情报信息

请登录查看更多情报信息。

CVE-2026-45034 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-45034

暂无评论


发表评论