{"id":"CVE-2026-142641","aliases":["GHSA-hxc4-wvjf-r59p"],"url":"https://o3.security/vulnerability/CVE-2026-142641","summary":"Laravel: File validation bypass via empty input field colliding with an upload in Request::all()","details":"### Impact\n\nIn 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.\n\n### Patches\n\nEmpty input values (`null`, empty string or empty array) no longer shadow a colliding uploaded file in `Request::all()`. This is fixed in laravel/framework 13.x by https://github.com/laravel/framework/pull/62521 and released in v13.43.0.","published":"2026-12-02T22:48:11.523Z","modified":"2026-12-03T21:02:19.329667922Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"13.43.0"},{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"12.73.0"}],"fix":{"url":"https://github.com/laravel/framework/commit/24f23f0ed72c31404f4f09cd5e36cb503012c8f2","label":"laravel/framework@24f23f0"},"references":[{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.73.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.43.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142641.json"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-hxc4-wvjf-r59p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142641"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/24f23f0ed72c31404f4f09cd5e36cb503012c8f2"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/4fbcd3b124f525906391f8a1b8ae51822f6913be"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62504"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62521"},{"type":"PACKAGE","url":"https://github.com/laravel/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:02:19.329667922Z"}}