GHSA-cc2w-ghc5-m5qr: Illuminate/database Laravel Risk Of Mass-assignment Vulnerabilities Vulnerability
MODERATEGHSA-cc2w-ghc5-m5qr is a MODERATE laravel risk of mass-assignment vulnerabilities vulnerability (CWE-20: Improper Input Validation) affecting Illuminate/database libraries in the Packagist ecosystem. The issue involves laravel risk of mass-assignment vulnerabilities. Remediation is available by upgrading affected packages to version 4.1.29.
GHSA-cc2w-ghc5-m5qr at a Glance
How to Fix GHSA-cc2w-ghc5-m5qr
To remediate this vulnerability, upgrade all affected Illuminate/database 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 illuminate/database to 4.1.29
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for illuminate/database
How to Check if You Are Affected
To determine whether your application is affected by GHSA-cc2w-ghc5-m5qr, inspect your project dependencies for Illuminate/database:
inspect dependencies for illuminate/database
Analyze the terminal output to locate any version of Illuminate/database in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.29), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Illuminate/database, 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-cc2w-ghc5-m5qr Affected Illuminate/database Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
illuminate/database
|
Packagist |
≥ 4.0.0
< 4.1.29
|
4.1.29
|
References
Frequently Asked Questions
What is GHSA-cc2w-ghc5-m5qr?
Which Illuminate/database versions are affected?
What version fixes GHSA-cc2w-ghc5-m5qr?
Is illuminate/database affected?
What CWE is associated with GHSA-cc2w-ghc5-m5qr?
How can I check Packagist dependencies for GHSA-cc2w-ghc5-m5qr?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cc2w-ghc5-m5qr",
"modified" : "2024-05-15T21:53:03Z",
"published" : "2024-05-15T21:53:03Z",
"aliases" : [ ],
"summary" : "Laravel Risk of mass-assignment vulnerabilities",
"details" : "Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. However, if you are using guarded and are passing a user controlled array into an \"update\" or \"save\" type function, you should upgrade to 4.1.29 immediately as your application may be at risk of mass assignment.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "illuminate/database"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.29"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/2014-05-20.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/illuminate/database"
}, {
"type" : "WEB",
"url" : "https://laravel.com/docs/5.1/upgrade#upgrade-4.1.29"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:53:03Z",
"nvd_published_at" : null
}
}