Skip to content
GitHub advisory IDGHSA-44pg-c29v-hp6r

Laravel Guard bypass in Eloquent models

GHSA-44pg-c29v-hp6r is a medium-severity vulnerability, classed as Improper Input Validation (CWE-20), in laravel/framework (Packagist). Affected versions: >= 5.5.0, <= 5.5.49; >= 6.0.0, < 6.18.34; >= 7.0.0, < 7.23.2. It is fixed in 6.18.34 or 7.23.2, depending on the release line.

MediumFix availableGitHub reviewed

Published 15 May 2024Updated 15 May 2024

No scoreNot yet rated
CVE ID
No CVE assigned
EPSS
Not scored
Weakness (CWE)
  • CWE-20Improper Input Validation
KEV status
Not in KEV
Published
15 May 2024
Updated
15 May 2024
Ecosystem
  • Packagist (PHP)

Summary

Source: OSV (GitHub advisory)

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.

Technical details

No CVSS vector has been published for this vulnerability yet.

Affected packages

Source: OSV (GitHub advisory)

  • laravel/framework
    Packagist (PHP)
    pkg:composer/laravel/framework
    Affected versions
    >= 5.5.0, <= 5.5.49
    >= 6.0.0, < 6.18.34
    >= 7.0.0, < 7.23.2
    Fixed in
    6.18.34
    7.23.2
    Show 173 listed versions
    • v5.5.0
    • v5.5.1
    • v5.5.10
    • v5.5.11
    • v5.5.12
    • v5.5.13
    • v5.5.14
    • v5.5.15
    • v5.5.16
    • v5.5.17
    • v5.5.18
    • v5.5.19

Fix

Source: OSV (GitHub advisory)

Fix available

Upgrade to 6.18.34 or 7.23.2, depending on your release line.

Vulnerability intelligence

References

Questions about GHSA-44pg-c29v-hp6r

Does GHSA-44pg-c29v-hp6r have a CVE ID?
No CVE ID has been assigned to GHSA-44pg-c29v-hp6r yet. It is tracked only as a GitHub advisory.
Which versions are affected by GHSA-44pg-c29v-hp6r?
laravel/framework (Packagist): >= 5.5.0, <= 5.5.49; >= 6.0.0, < 6.18.34; >= 7.0.0, < 7.23.2.
How do I fix GHSA-44pg-c29v-hp6r?
Upgrade to 6.18.34 or 7.23.2, depending on the release line.
What is the Package URL (PURL) for GHSA-44pg-c29v-hp6r?
The affected package's PURL is pkg:composer/laravel/framework.

Data sources

Upstream records

Fetched 5 days ago (8 Oct 2026, 20:02 UTC). Records refresh automatically after 24 hours.

Where each part of this page came from

Title and description
OSV (GitHub advisory)
Weakness (CWE)
GitHub Advisory Database
Affected packages
OSV (GitHub advisory)
Fix
OSV (GitHub advisory)
References
Computed by CVEminer

OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.