← Vulnerabilities

MediumAdvisoryPHPLaravel

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

Affected

PackageAffected versionsFixed in
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…

Read on GitHub Advisory Database

On 12/04/2026, 03:50 AM, GitHub Advisory Database published "Laravel: File validation bypass via empty input field colliding with an upload in Request::all()" (type: Advisory). Severity is "Medium" (medium). Related technologies: PHP, Laravel. CVE: CVE-2026-142641.