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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-118515— Symfony 任意文件上传漏洞

一分钟漏洞结论

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

Symfony Serializer 组件中的 仅处理 、 和 这三种确切类型。因此,当某个属性的类型被声明为子类(例如 )时, 会利用攻击者控制的数据(包括文件路径)通过构造函数实例化该对象。这导致在以下版本的 Symfony 中,服务器上的任意文件均可被当作上传文件处理: 5.4 系列:早于 5.4.56 6.x 系列:早于 6.4.50 7.x 系列:早于 7.4.23 8.x 系列:早于 8.1.11 例如,包含如下内容的请求体: 会使应用程序将服务器上的任意文件视为上传文件,而无需实际发送该文件。当设置

CVSS 8.4 · High
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
Symfony: The Serializer Builds UploadedFile Objects From Request Data, Letting a Client Point an Upload at Any Server File
来源: CVE Program / CVE List V5
Vulnerability Description
The Symfony Serializer component DataUriNormalizer handles only the exact types SplFileInfo, SplFileObject, and File, so for a property typed with a subclass such as UploadedFile, ObjectNormalizer instantiates the object through its constructor from attacker-controlled data, including the file path. This allows an arbitrary file on the server to be treated as an uploaded file in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. A request body such as {"image": {"path": "/path/to/project/.env.local", "originalName": "a.png", "test": true}} makes the application handle any file on the server as an upload, without the file being sent. With test: true, UploadedFile::isValid() skips is_uploaded_file() and move() falls back to rename(). Assert\File does not prevent this because it validates the file at the attacker-chosen path, which exists on the server. Any code that deserializes untrusted data into a type that holds such a property is affected. That includes #[MapRequestPayload] on a DTO with an UploadedFile property, which is how uploads are mapped in Symfony 8.1; a single unauthenticated request with a JSON or form body is enough. Depending on what the application does with the upload, this can expose any file readable by PHP (for instance, when uploads are stored and served back), move any such file when move() is called, and reveal whether a path exists. A serializer built without DataUriNormalizer ahead of the object normalizer is not protected by the fix; the serializer configured by FrameworkBundle is.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
文件名或路径的外部可控制
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
sensiolabs symfony 0 ~ 5.4.56 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2026-118515 其他参考 (3)

同批安全公告 · sensiolabs · 2026-11-06 · 共 7 条

CVE-2026-123792 8.7 HIGH Symfony YAML 解析器拒绝服务漏洞
CVE-2026-121623 8.2 HIGH Symfony DataUriNormalizer 任意文件读取漏洞
CVE-2026-122053 6.9 MEDIUM Symfony ObjectNormalizer 忽略属性路径遍历漏洞
CVE-2026-123746 2.3 LOW Symfony 认证绕过漏洞
CVE-2026-123339 2.3 LOW Symfony 4.4.40 远程请求伪造漏洞
CVE-2026-123824 2.3 LOW Symfony Config XmlUtils 配置 XML 外部实体注入漏洞

IV. Related Vulnerabilities