PortGate

Advisories · PHP & Laravel

CVE-2025-27515 Medium CVSS 6.5

Laravel wildcard file validation bypass

Disclosed 2025 · Last reviewed 2 Dec 2026

A crafted multipart request could skip wildcard file or image rules.

What happened

The validator did not apply the wildcard file rule to every item an attacker could place in the payload.

Affected and patched versions

Affected
Laravel before 10.48.29, 11.44.1, and 12.1.1 when a rule uses the files.* or images.* wildcard.
Patched
10.48.29, 11.44.1, and 12.1.1.

How to check your server

Check

composer show laravel/framework

How to fix and harden

  1. Upgrade within the major you run: 10.48.29, 11.44.1, or 12.1.1.
  2. Keep authorizing uploads in the application. The framework fix does not replace a private disk and an allow-list of extensions.

Fix

composer show laravel/framework

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON