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

Published Dec 2, 2026
·
Updated

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

1 affected component
composer/laravel/framework<13.43.0, <12.73.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13.43.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 12.73.0

Event History

Dec 2, 2026
CVE Published
via MITRE·10:48 PM
Data Sourced
via MITRE·10:48 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

What is the remediation?

Upgrade Laravel 13.x to 13.43.0 or later, or Laravel 12.x to 12.73.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203