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

目标: 1000 元 · 已筹: 1325

100%

CVE-2026-49260— PhpWeasyPrint 远程代码执行漏洞

CVSS 8.2 · High EPSS 0.15% · P5

影响版本矩阵 1

厂商产品版本范围状态
pontedilanaphp-weasyprint< 2.5.1affected
获取后续新漏洞提醒登录后订阅

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

漏洞信息

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

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

Vulnerability Title
PhpWeasyPrint: shell command injection via configurable WeasyPrint binary path due to inverted is_executable() guard (mirror of KnpLabs/snappy GHSA-vpr4-p6fq-85jc)
来源: 美国国家漏洞数据库 NVD
Vulnerability Description
PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.5.1, `pontedilana/php-weasyprint` builds the shell command for WeasyPrint by passing the binary path through `escapeshellarg()` first and then checking the *quoted* result with `is_executable()`. On POSIX `escapeshellarg('/usr/local/bin/weasyprint')` returns `'/usr/local/bin/weasyprint'` with the single-quote characters as part of the string, so `is_executable()` looks for a file whose actual name includes those quotes. That file never exists, the "safe" branch is dead code, and the raw `$binary` string (set via the constructor or `setBinary()`) flows directly into `Symfony\Component\Process\Process::fromShellCommandline()`. Any deployment whose binary path is sourced from configuration, an environment variable, or a per-tenant setting reaches a shell-command-injection sink. The library is documented as a one-to-one substitute for KnpLabs/snappy and inherited the exact pre-fix codepath KnpLabs patched in GHSA-vpr4-p6fq-85jc. PhpWeasyPrint version 2.5.1 contains a patch for the issue.
来源: 美国国家漏洞数据库 NVD
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
来源: 美国国家漏洞数据库 NVD
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
来源: 美国国家漏洞数据库 NVD

受影响产品

厂商产品影响版本CPE订阅
pontedilanaphp-weasyprint < 2.5.1 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

CVE-2026-49260 补丁与修复 (1)

CVE-2026-49260 厂商安全公告 (2)

CVE-2026-49260 厂商页面 (1)

同批安全公告 · pontedilana · 2026-06-19 · 共 4 条

CVE-2026-492868.1 HIGHPhpWeasyPrint PHAR反序列化漏洞
CVE-2026-493596.5 MEDIUMPhpWeasyPrint 附件选项导致SSRF和本地文件泄露漏洞
CVE-2026-493583.0 LOWPhpWeasyPrint 关闭时任意文件删除漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-49260

匿名用户
2026-06-22 16:09:40

References: Gala casino northampton https://streamifyr.com/


发表评论