CVE Catalog

CVE-2026-142641

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.43%

39th percentile - higher than 39% of all known CVEs

Summary

In Laravel 13.x before versions 13.43.0 and 12.73.0, 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, validation (including FormRequest) saw the empty value instead of the upload, skipping rules such as nullable, image, mimes and max.

Risk Assessment

Applications validating optional uploads this way could store files that bypass type and size validation, potentially leading to storage of malicious files.

Recommendation

Upgrade Laravel to version 13.43.0 or 12.73.0 and review upload validation logic relying on Request::all().

Other vulnerabilities in Laravel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS