Laravel Mass Assignment Vulnerability in laravel/framework

laravel/framework Updated 02 Oct 2025

Summary

15/05/2024
MODERATE
Yes i
Moderate
Not published

GHSA-rj3w-99gc-8j58: Laravel Risk of mass-assignment vulnerabilities. Affects laravel/framework versions >= 4.0.0, < 4.1.29. Fixed in 4.1.29. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

laravel/framework is a popular PHP framework used for web application development. It provides a wide range of features and functionalities to simplify the development process. However, versions prior to 4.1.29 are vulnerable to a mass assignment vulnerability. This vulnerability can allow an attacker to modify or access sensitive data by manipulating the input parameters of certain functions.

Vulnerability Detail

The mass assignment vulnerability in laravel/framework arises when user-controlled input is not properly validated or filtered before being used to update or save data. This can lead to unauthorized modifications or access to sensitive data. The vulnerability was addressed in version 4.1.29 by improving the column quoting for all database drivers. If the fillable property is used on models to protect against mass assignment, the application is not vulnerable. However, if the guarded property is used and a user-controlled array is passed into an 'update' or 'save' function, the application may be at risk.

How To Fix

Minimum fixed version

4.1.29

This is the first release that contains the fix.

composer require laravel/framework:4.1.29

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to version 4.1.29 is not immediately feasible, a workaround can be implemented by using the fillable property on models to protect against mass assignment. By explicitly specifying the fields that can be mass assigned, the vulnerability can be mitigated. For example, in a model class, the fillable property can be set as follows:

protected $fillable = ['field1', 'field2'];

Conclusion

The mass assignment vulnerability in laravel/framework can pose a risk to the security of web applications. It is crucial to upgrade to version 4.1.29 or later to mitigate this vulnerability. Additionally, implementing proper input validation and filtering mechanisms is essential to prevent similar vulnerabilities in the future. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for laravel/framework →

Share this vulnerability

FAQ

laravel/framework is a PHP framework used for web application development. It provides a range of features and functionalities to simplify the development process.

A mass assignment vulnerability occurs when user-controlled input is not properly validated or filtered before being used to update or save data. This can lead to unauthorized modifications or access to sensitive data.

To fix the vulnerability, it is recommended to upgrade laravel/framework to version 4.1.29 or later. Additionally, ensure proper input validation and filtering mechanisms are in place to prevent mass assignment vulnerabilities.

The fillable property is used in laravel/framework to specify the fields that can be mass assigned. By explicitly defining the fillable fields, the vulnerability can be mitigated.

No, if you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable to this specific issue.

Related vulnerabilities

Recent vulnerabilities recorded for laravel/framework.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.1.29

This is the first release that contains the fix.

composer require laravel/framework:4.1.29

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback