CVE-2025-27515: Laravel/framework Laravel Has A File Validation Vulnerability
MODERATECVE-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
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.
Upgrade laravel/framework to 12.1.1
Upgrade laravel/framework to 11.44.1
Upgrade laravel/framework to 10.48.29
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
CVE-2025-27515 Affected Laravel/framework Versions
3 component(s)| 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?
Which Laravel/framework versions are affected?
What version fixes CVE-2025-27515?
Is laravel/framework affected?
What CWE is associated with CVE-2025-27515?
How can I check Packagist dependencies for CVE-2025-27515?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}