GHSA-jwvj-pwww-3mj5: Laravel/framework Laravel Framework Unexpected Database Bindings Vulnerability

HIGH
Published
Advisory Summary

GHSA-jwvj-pwww-3mj5 is a HIGH laravel framework unexpected database bindings vulnerability (General Security Weakness) affecting Laravel/framework libraries in the Packagist ecosystem. The issue involves laravel framework unexpected database bindings via requests. Remediation is available by upgrading affected packages to version 6.20.14, 7.30.4, 8.24.0.

GHSA-jwvj-pwww-3mj5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jwvj-pwww-3mj5
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Laravel/framework
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-jwvj-pwww-3mj5

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: 6.20.14
Upgrade laravel/framework to 6.20.14
laravel/framework fixed: 7.30.4
Upgrade laravel/framework to 7.30.4
laravel/framework fixed: 8.24.0
Upgrade laravel/framework to 8.24.0
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-jwvj-pwww-3mj5, 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 6.20.14), 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 General Security Weakness. 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

This is a follow-up to the security advisory https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x which addresses a few additional edge cases. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.

GHSA-jwvj-pwww-3mj5 Affected Laravel/framework Versions

3 component(s)
Fixed Versions:
6.20.147.30.48.24.0
Product / Package Ecosystem Affected Versions Fixed Version
laravel/framework
Packagist
≥ 6.0.0
< 6.20.14
6.20.14
laravel/framework
Packagist
≥ 7.0.0
< 7.30.4
7.30.4
laravel/framework
Packagist
≥ 8.0.0
< 8.24.0
8.24.0

References

Frequently Asked Questions

What is GHSA-jwvj-pwww-3mj5?
GHSA-jwvj-pwww-3mj5 is a security vulnerability in Laravel/framework involving laravel framework Unexpected database bindings via requests under General Security Weakness.
Which Laravel/framework versions are affected?
Affected versions include releases prior to 6.20.14, 7.30.4, 8.24.0 across affected packages: laravel/framework.
What version fixes GHSA-jwvj-pwww-3mj5?
Upgrading to 6.20.14, 7.30.4, 8.24.0 (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 6.20.14, 7.30.4, 8.24.0. Upgrade your dependency to 6.20.14, 7.30.4, 8.24.0 or later.
What CWE is associated with GHSA-jwvj-pwww-3mj5?
GHSA-jwvj-pwww-3mj5 is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-jwvj-pwww-3mj5?
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-jwvj-pwww-3mj5",
  "modified" : "2024-05-15T22:19:51Z",
  "published" : "2024-05-15T22:19:51Z",
  "aliases" : [ ],
  "summary" : "laravel framework Unexpected database bindings via requests",
  "details" : "This is a follow-up to the security advisory https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x which addresses a few additional edge cases.\n\nIf a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.20.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.30.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "laravel/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.24.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/laravel/framework/security/advisories/GHSA-x7p5-p2c9-phvg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2021-01-21.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/laravel/framework"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T22:19:51Z",
    "nvd_published_at" : null
  }
}