🛡️ GHSA-44pg-c29v-hp6r — framework
Description
Laravel Guard bypass in Eloquent models
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.
Weakness class
GHSA-44pg-c29v-hp6r is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.
Affected software
GHSA-44pg-c29v-hp6r is recorded against 1 package.
- laravel/framework (from 7.0.0 up to 7.23.2)
Timeline and source
Published on 15 May 2024 and last revised on 29 November 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| laravel/framework | 7.0.0 | 7.23.2 |
References
Similar Threats
- Unknown CLSA-2025-1761785337
- Unknown CLSA-2025-1761785347
- Unknown CLSA-2025-1765932544
- Unknown CLSA-2026-1767919738
- Unknown CLSA-2026-1773017339
Free Vulnerability Check
Is your site affected by GHSA-44pg-c29v-hp6r?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-44pg-c29v-hp6r and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.