Feed
–MEDIUM
GHSA-44pg-c29v-hp6rLaravel Guard bypass in Eloquent models
A medium-severity vulnerability, without a CVSS score in our data. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- –
- not in our data
- Fix
- Named by a source
- Advisory published 15 May 2024
Reference
None of the "Needs attention" rules apply right now.
No EPSS score: unknown · Severity medium, no CVSS score in our data (+17)
Immediate actions
- laravel/framework (Packagist): upgrade to 6.18.34 / 7.23.2 or later on your release line.
Who should check
laravel/framework (Packagist) pkg:composer/laravel/framework
- Affected>= 5.5.0, <= 5.5.49Last known affected5.5.49OSV (GHSA-44pg-c29v-hp6r)
- Affected>= 6.0.0, < 6.18.34Fixed in6.18.34OSV (GHSA-44pg-c29v-hp6r)
- Affected>= 7.0.0, < 7.23.2Fixed in7.23.2OSV (GHSA-44pg-c29v-hp6r)
Confirmed facts
- Severity
- MEDIUM (no CVSS score in our data)
- Weakness
- CWE-20
Unknowns
- No CVSS score in our data. That says nothing about how bad it is, nor that none is published.
- No EPSS score in our data.
Advisory text
Quoted from the source advisory (untrusted)In laravel releases before 6.18.34 and 7.23.2. It was possible to mass assign Eloquent attributes that included the model's table name: ``` $model->fill(['users.name' => 'Taylor']); ``` When doing so, Eloquent would remove the table name from the attribute for you. This was a "convenience" feature of Eloquent and was not documented. However, when paired with validation, this can lead to unexpected and unvalidated values being saved to the database. For this reason, we have removed the automatic stripping of table names from mass-asignment operations so that the attributes go through the typical "fillable" / "guarded" logic. Any attributes containing table names that are not explicitly declared as fillable will be discarded. This security release will be a breaking change for applications that were relying on the undocumented table name stripping during mass assignment. Since this feature was relatively unknown and undocumented, we expect the vast majority of Laravel applications to be able to upgrade without issues.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
Sources
- GHSA-44pg-c29v-hp6r (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 32 min ago · osv 32 min ago · nvd 32 min ago · epss 32 min ago · JSON · ask via MCP: explain_vulnerability