Laravel: File validation bypass via empty input field colliding with an upload in Request::all()
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| composer:laravel/framework | >= 13.0.0, < 13.43.0 | 13.43.0 |
| composer:laravel/framework | < 12.73.0 | 12.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…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー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。