CVE-2025-27515CWE-155

Laravel has a File Validation Bypass

Medium · published March 5, 2025

CVSS v4.0
6.9
EPSS
1%
Percentile
54.4
In the wild
Unconfirmed
What it is

⚠️ A crafty request is all it takes to slip through. When using wildcard validation in Laravel, a user could potentially bypass your file or image checks, like sneaking a fake ID past someone who’s not paying attention. 🔍 Think of it like a restaurant's check-in process where the host is distracted and lets anyone with a simple smile walk right through the door. If validation isn’t spot-on, malicious files could be served up instead of the safe, delicious data you intended. This vulnerability allows attackers to submit malicious files that could compromise your application’s integrity. While it’s marked as medium risk, the consequences could still lead to data leaks or unauthorized access, which can be absolutely devastating!

Put simply

Think of it like a restaurant's check-in process where the host is distracted and lets anyone with a simple smile walk right through the door. If validation isn’t spot-on, malicious files could be served up instead of the safe, delicious data you intended. This flaw arises from improper handling of wildcard validation in Laravel, allowing crafted requests to bypass checks on file or image fields (`files.*`).

What to do

This vulnerability allows attackers to submit malicious files that could compromise your application’s integrity. While it’s marked as medium risk, the consequences could still lead to data leaks or unauthorized access, which can be absolutely devastating! To protect your application, immediately update Laravel to version 11.44.1 or 12.1.1. Additionally, review your validation rules to ensure they’re robust enough to prevent such bypass attempts. Don’t forget to test thoroughly after making changes! You’ve got this! Stay vigilant, and with just a few updates, you’ll be a security hero! 🦸‍♂️

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.00749 · 54.4th percentile
Weakness
CWE-155 · Improper Neutralization of Wildcards or Matching Symbols
Published
2025-03-05T18:45Z
EPSS history
Timeline
  • 05 MAR 18:45Z
    Laravel has a File Validation Bypass
    cvelistv5