GHSA-jwvj-pwww-3mj5: Laravel/framework Laravel Framework Unexpected Database Bindings Vulnerability
HIGHGHSA-jwvj-pwww-3mj5 is a HIGH laravel framework unexpected database bindings vulnerability (General Security Weakness) affecting Laravel/framework libraries in the Packagist ecosystem. The issue involves laravel framework unexpected database bindings via requests. Remediation is available by upgrading affected packages to version 6.20.14, 7.30.4, 8.24.0.
GHSA-jwvj-pwww-3mj5 at a Glance
How to Fix GHSA-jwvj-pwww-3mj5
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 6.20.14
Upgrade laravel/framework to 7.30.4
Upgrade laravel/framework to 8.24.0
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 GHSA-jwvj-pwww-3mj5, 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 6.20.14), 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 General Security Weakness. 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
GHSA-jwvj-pwww-3mj5 Affected Laravel/framework Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
laravel/framework
|
Packagist |
≥ 6.0.0
< 6.20.14
|
6.20.14
|
|
laravel/framework
|
Packagist |
≥ 7.0.0
< 7.30.4
|
7.30.4
|
|
laravel/framework
|
Packagist |
≥ 8.0.0
< 8.24.0
|
8.24.0
|
References
Frequently Asked Questions
What is GHSA-jwvj-pwww-3mj5?
Which Laravel/framework versions are affected?
What version fixes GHSA-jwvj-pwww-3mj5?
Is laravel/framework affected?
What CWE is associated with GHSA-jwvj-pwww-3mj5?
How can I check Packagist dependencies for GHSA-jwvj-pwww-3mj5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jwvj-pwww-3mj5",
"modified" : "2024-05-15T22:19:51Z",
"published" : "2024-05-15T22:19:51Z",
"aliases" : [ ],
"summary" : "laravel framework Unexpected database bindings via requests",
"details" : "This is a follow-up to the security advisory https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x which addresses a few additional edge cases.\n\nIf a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.20.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.30.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "laravel/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.24.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/laravel/framework/security/advisories/GHSA-x7p5-p2c9-phvg"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2021-01-21.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/laravel/framework"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T22:19:51Z",
"nvd_published_at" : null
}
}