GHSA-rj3w-99gc-8j58: Laravel/framework Laravel Risk Of Mass-assignment Vulnerabilities Vulnerability

MODERATE
CWE-20
Published
Advisory Summary

GHSA-rj3w-99gc-8j58 is a MODERATE laravel risk of mass-assignment vulnerabilities vulnerability (CWE-20: Improper Input Validation) affecting Laravel/framework libraries in the Packagist ecosystem. The issue involves laravel risk of mass-assignment vulnerabilities. Remediation is available by upgrading affected packages to version 4.1.29.

GHSA-rj3w-99gc-8j58 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rj3w-99gc-8j58
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Laravel/framework
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-rj3w-99gc-8j58

To remediate this vulnerability, upgrade all affected Laravel/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

laravel/framework fixed: 4.1.29
Upgrade laravel/framework to 4.1.29
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for laravel/framework

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rj3w-99gc-8j58, inspect your project dependencies for Laravel/framework:

inspect dependencies for laravel/framework

Analyze the terminal output to locate any version of Laravel/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.29), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Laravel/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. However, if you are using guarded and are passing a user controlled array into an "update" or "save" type function, you should upgrade to 4.1.29 immediately as your application may be at risk of mass assignment.

GHSA-rj3w-99gc-8j58 Affected Laravel/framework Versions

1 component(s)
Fixed Versions:
4.1.29
Product / Package Ecosystem Affected Versions Fixed Version
laravel/framework
Packagist
≥ 4.0.0
< 4.1.29
4.1.29

References

Frequently Asked Questions

What is GHSA-rj3w-99gc-8j58?
GHSA-rj3w-99gc-8j58 is a security vulnerability in Laravel/framework involving Laravel Risk of mass-assignment vulnerabilities under CWE-20: Improper Input Validation.
Which Laravel/framework versions are affected?
Affected versions include releases prior to 4.1.29 across affected packages: laravel/framework.
What version fixes GHSA-rj3w-99gc-8j58?
Upgrading to 4.1.29 (or the latest patched release for your respective branch) resolves the vulnerability.
Is laravel/framework affected?
Yes, laravel/framework is affected in releases prior to 4.1.29. Upgrade your dependency to 4.1.29 or later.
What CWE is associated with GHSA-rj3w-99gc-8j58?
GHSA-rj3w-99gc-8j58 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for GHSA-rj3w-99gc-8j58?
Run the dependency tree command: 'inspect dependencies for laravel/framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rj3w-99gc-8j58",
  "modified" : "2024-05-15T22:05:00Z",
  "published" : "2024-05-15T22:05:00Z",
  "aliases" : [ ],
  "summary" : "Laravel Risk of mass-assignment vulnerabilities",
  "details" : "Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. However, if you are using guarded and are passing a user controlled array into an \"update\" or \"save\" type function, you should upgrade to 4.1.29 immediately as your application may be at risk of mass assignment.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.29"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/commit/c942a1bc30999e3d7a5567f264bfc99c77843919"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2014-05-20.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/laravel/framework"
  }, {
    "type" : "WEB",
    "url" : "https://laravel.com/docs/5.3/upgrade#upgrade-4.1.29"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T22:05:00Z",
    "nvd_published_at" : null
  }
}