Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. laravel/framework
  4. ›
  5. GMS-2021-116

GMS-2021-116: Unexpected database bindings

February 2, 2021

This is a follow-up to the previous security advisory (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.

References

  • github.com/advisories/GHSA-3p32-j457-pg5x
  • github.com/advisories/GHSA-x7p5-p2c9-phvg
  • github.com/laravel/framework/security/advisories/GHSA-x7p5-p2c9-phvg
  • packagist.org/packages/illuminate/database
  • packagist.org/packages/laravel/framework

Code Behaviors & Features

Detect and mitigate GMS-2021-116 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.20.14, all versions starting from 7.0.0 before 7.30.4, all versions starting from 8.0.0 before 8.24.0

Fixed versions

  • 6.20.14
  • 7.30.4
  • 8.24.0

Solution

Upgrade to versions 6.20.14, 7.30.4, 8.24.0 or above.

Source file

packagist/laravel/framework/GMS-2021-116.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:36 +0000.