Laravel: File validation bypass via empty input field colliding with an upload in Request::all()
CVE-2026-142641GHSA-hxc4-wvjf-r59pPublished 2 Dec 2026, 22:48 UTC
Real-world risk
2.6/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
What to do
Update to a fixed version: 13.43.0, 12.73.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 1 × threat 0.852.550
- Rounded to one decimal between 0.1 and 102.6
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 2.6 (cvss fallback)
Weakness
CWE-235
References
- https://github.com/laravel/framework/security/advisories/GHSA-hxc4-wvjf-r59pvendor-advisory
- https://github.com/laravel/framework/pull/62504misc
- https://github.com/laravel/framework/pull/62521misc
- https://github.com/laravel/framework/commit/24f23f0ed72c31404f4f09cd5e36cb503012c8f2misc
- https://github.com/laravel/framework/commit/4fbcd3b124f525906391f8a1b8ae51822f6913bemisc
- https://github.com/laravel/framework/releases/tag/v12.73.0misc
- https://github.com/laravel/framework/releases/tag/v13.43.0misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-142641
- https://github.com/advisories/GHSA-hxc4-wvjf-r59p
- CVE-2026-142641 on CVE.org