Laravel: File validation bypass via empty input field colliding with an upload in Request::all()
Summary
| CVE | CVE-2026-142641 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-02 23:18:42 UTC |
| Updated | 2026-12-02 23:18:42 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Problem Types: CWE-235 | CWE-235 CWE-235: Improper Handling of Extra Parameters
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| 3.1 | CNA | DECLARED | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/laravel/framework/commit/24f23f0ed72c31404f4f09cd5e36cb503012... | [email protected] | github.com | |
| github.com/laravel/framework/releases/tag/v12.73.0 | [email protected] | github.com | |
| github.com/laravel/framework/pull/62521 | [email protected] | github.com | |
| github.com/laravel/framework/pull/62504 | [email protected] | github.com | |
| github.com/laravel/framework/security/advisories/GHSA-hxc4-wvjf-r59p | [email protected] | github.com | |
| github.com/laravel/framework/commit/4fbcd3b124f525906391f8a1b8ae51822f69... | [email protected] | github.com | |
| github.com/laravel/framework/releases/tag/v13.43.0 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.