CVE-2025-27515: Laravel/framework Laravel Has A File Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-78fx-h6xr-vch4
CWE-155
Published
Advisory Summary

CVE-2025-27515 is a MODERATE laravel has a file validation vulnerability (CWE-155: Improper Neutralization of Wildcards or Matching Symbols) affecting Laravel/framework libraries in the Packagist ecosystem. The issue involves laravel has a file validation bypass. Remediation is available by upgrading affected packages to version 12.1.1, 11.44.1, 10.48.29.

CVE-2025-27515 at a Glance

CVE Identifier CVE-2025-27515
GHSA Identifier GHSA-78fx-h6xr-vch4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-155: Improper Neutralization of Wildcards or Matching Symbols
Affected Product Laravel/framework
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-27515

To remediate this vulnerability, upgrade all affected Laravel/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

laravel/framework fixed: 12.1.1
Upgrade laravel/framework to 12.1.1
laravel/framework fixed: 11.44.1
Upgrade laravel/framework to 11.44.1
laravel/framework fixed: 10.48.29
Upgrade laravel/framework to 10.48.29
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for laravel/framework

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-27515, inspect your project dependencies for Laravel/framework:

inspect dependencies for laravel/framework

Analyze the terminal output to locate any version of Laravel/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.1.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-155: Improper Neutralization of Wildcards or Matching Symbols, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as wildcards or matching symbols when they are sent to a downstream component. In Laravel/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-27515 Affected Laravel/framework Versions

3 component(s)
Fixed Versions:
12.1.111.44.110.48.29
Product / Package Ecosystem Affected Versions Fixed Version
laravel/framework
Packagist
≥ 12.0.0
< 12.1.1
12.1.1
laravel/framework
Packagist
≥ 11.0.0
< 11.44.1
11.44.1
laravel/framework
Packagist
< 10.48.29
10.48.29

References

Frequently Asked Questions

What is CVE-2025-27515?
CVE-2025-27515 is a security vulnerability in Laravel/framework involving Laravel has a File Validation Bypass under CWE-155: Improper Neutralization of Wildcards or Matching Symbols.
Which Laravel/framework versions are affected?
Affected versions include releases prior to 12.1.1, 11.44.1, 10.48.29 across affected packages: laravel/framework.
What version fixes CVE-2025-27515?
Upgrading to 12.1.1, 11.44.1, 10.48.29 (or the latest patched release for your respective branch) resolves the vulnerability.
Is laravel/framework affected?
Yes, laravel/framework is affected in releases prior to 12.1.1, 11.44.1, 10.48.29. Upgrade your dependency to 12.1.1, 11.44.1, 10.48.29 or later.
What CWE is associated with CVE-2025-27515?
CVE-2025-27515 is classified under CWE-155: Improper Neutralization of Wildcards or Matching Symbols (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as wildcards or matching symbols when they are sent to a downstream component.).
How can I check Packagist dependencies for CVE-2025-27515?
Run the dependency tree command: 'inspect dependencies for laravel/framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-78fx-h6xr-vch4",
  "modified" : "2025-03-12T21:29:27Z",
  "published" : "2025-03-05T19:09:39Z",
  "aliases" : [ "CVE-2025-27515" ],
  "summary" : "Laravel has a File Validation Bypass",
  "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.44.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.48.29"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/security/advisories/GHSA-78fx-h6xr-vch4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27515"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/commit/2d133034fefddfb047838f4caca3687a3ba811a5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/commit/a4f7a8f9b83e21882abeef78c3174c66b0f4a26b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/laravel/framework"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-155" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-05T19:09:39Z",
    "nvd_published_at" : "2025-03-05T19:15:39Z"
  }
}