Security advisoryCVE-2025-27515
Laravel has a File Validation Bypass
When using wildcard validation to validate a given file or image field array (files.*), a user-crafted malicious request could potentially bypass the validation rules.
As published by the sources
Affected packages
- Affected
>=12.0.0,<12.1.1 || >=11.0.0,<11.44.1 || <10.48.29Fixed in10.48.2911.44.112.1.1
Derived from the fixed versions above
What to do
Upgrade laravel/framework to the fixed version in your release line: 10.48.29, 11.44.1, 12.1.1.
composer update laravel/framework --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
Details
When using wildcard validation to validate a given file or image field array (files.*), a user-crafted malicious request could potentially bypass the validation rules.
References
- Advisoryhttps://github.com/advisories/GHSA-78fx-h6xr-vch4
- Webhttps://github.com/laravel/framework/security/advisories/GHSA-78fx-h6xr-vch4
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-27515
- Webhttps://github.com/laravel/framework/commit/2d133034fefddfb047838f4caca3687a3ba811a5
- Webhttps://github.com/laravel/framework/commit/a4f7a8f9b83e21882abeef78c3174c66b0f4a26b
- Packagehttps://github.com/laravel/framework