← 漏洞与更新

中危漏洞公告PHPLaravel

Laravel: File validation bypass via empty input field colliding with an upload in Request::all()

受影响

软件包受影响版本修复版本
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.73.0

In Laravel 13.x, Request::all() let a text input with the same name as an uploaded file take precedence over the file. If an attacker submitted an empty value alongside the file, request validation (including FormRequest validation) saw the empty value instead of the upload. Rules such as nullable, image, mimes and max were then skipped. Applications that validate an optional upload this way and then read it with $request->file() or $request->hasFile() could therefore store files that bypassed…

在 GitHub Advisory Database 阅读

2026/12/04 03:50,GitHub Advisory Database 发布了“Laravel: File validation bypass via empty input field colliding with an upload in Request::all()”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:PHP、Laravel。CVE:CVE-2026-142641。