CVE-2025-27515: Laravel has a File Validation Bypass
Laravel is a web application framework. When using wildcard validation to validate a given file or image field (files.), a user-crafted malicious request could potentially bypass the validation rules. This vulnerability is fixed in 11.44.1 and 12.1.1.
Other sources
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.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/laravel/frameworkto a version that resolves this vulnerability.Fixed in 10.48.29 - Upgrade
Upgrade
composer/laravel/frameworkto a version that resolves this vulnerability.Fixed in 11.44.1 - Upgrade
Upgrade
composer/laravel/frameworkto a version that resolves this vulnerability.Fixed in 12.1.1 - Upgrade
Upgrade
laravel/frameworkto a version that resolves this vulnerability.Fixed in 11.44.1 - Upgrade
Upgrade
laravel/frameworkto a version that resolves this vulnerability.Fixed in 12.1.1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-27515?
CVE-2025-27515 has been categorized as a high-severity vulnerability due to the potential for bypassing file validation rules.
How do I fix CVE-2025-27515?
To mitigate CVE-2025-27515, upgrade Laravel to version 11.44.1 or 12.1.1 or later.
What does CVE-2025-27515 affect?
CVE-2025-27515 affects Laravel framework versions prior to 11.44.1 and 12.1.1, specifically the wildcard validation for file or image fields.
Can CVE-2025-27515 allow malicious file uploads?
Yes, CVE-2025-27515 can potentially allow malicious requests to bypass file or image validation, leading to unauthorized file uploads.
Is there a patch available for CVE-2025-27515?
Yes, a patch for CVE-2025-27515 is available in the newer versions of Laravel, specifically 11.44.1 and 12.1.1.