CVE-2026-142641: Laravel: File validation bypass via empty input field colliding with an upload in Request::all()
Laravel is a web application framework. Prior to 13.43.0 and 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 type and size validation. This issue is fixed in versions 13.43.0 and 12.73.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 13.43.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.73.0
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications are exposed if they use Laravel versions before 13.43.0 or 12.73.0, validate an optional upload through Request::all() or FormRequest validation, and later retrieve the upload using $request->file() or $request->hasFile(). The affected pattern requires a text input and uploaded file that share the same field name.
What does an attacker need to send to bypass upload validation?
An attacker needs to submit an uploaded file together with an empty text input using the same name. Laravel validation then sees the empty input value, allowing rules such as nullable, image, mimes, and max to be skipped while application code can still retrieve the uploaded file.
What is the remediation?
Upgrade Laravel 13.x to 13.43.0 or later, or Laravel 12.x to 12.73.0 or later.