Read the docs
TI-2024-38675 Aliases GHSA-44pg-c29v-hp6r

Laravel Guard bypass in Eloquent models

Priority LOW 38CWE-20Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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.

Why it matters now

Fix Fixed laravel/framework (Packagist): 6.18.34, 7.23.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—laravel/framework (Packagist)5.5.0 – 5.5.49—No fix listedGHSA-44pg-c29v-hp6r
—laravel/framework (Packagist)6.0.0 to before 6.18.346.18.34Patch availableGHSA-44pg-c29v-hp6r
—laravel/framework (Packagist)7.0.0 to before 7.23.27.23.2Patch availableGHSA-44pg-c29v-hp6r
  • laravel/framework (Packagist) Vendor— Affected 5.5.0 – 5.5.49 Fixed in — No fix listed GHSA-44pg-c29v-hp6r
  • laravel/framework (Packagist) Vendor— Affected 6.0.0 to before 6.18.34 Fixed in 6.18.34 Patch available GHSA-44pg-c29v-hp6r
  • laravel/framework (Packagist) Vendor— Affected 7.0.0 to before 7.23.2 Fixed in 7.23.2 Patch available GHSA-44pg-c29v-hp6r

Remediation

  • Fix · GHSA-44pg-c29v-hp6r laravel/framework (Packagist) Fixed in 6.18.34 Advisory →
  • Fix · GHSA-44pg-c29v-hp6r laravel/framework (Packagist) Fixed in 7.23.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-44pg-c29v-hp6r

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences