Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. laravel/framework
  4. ›
  5. GHSA-wq8p-mqvg-2p5h

GHSA-wq8p-mqvg-2p5h: laravel framework SQL Injection via limit and offset functions

May 15, 2024

Those using SQL Server with Laravel and allowing user input to be passed directly to the limit and offset functions are vulnerable to SQL injection. Other database drivers such as MySQL and Postgres are not affected by this vulnerability.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2021-04-28.yaml
  • github.com/advisories/GHSA-wq8p-mqvg-2p5h
  • github.com/laravel/framework
  • github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j

Code Behaviors & Features

Detect and mitigate GHSA-wq8p-mqvg-2p5h 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 starting from 6.0.0 before 6.20.26, all versions starting from 7.0.0 before 7.30.5, all versions starting from 8.0.0 before 8.40.0

Fixed versions

  • 6.20.26
  • 7.30.5
  • 8.40.0

Solution

Upgrade to versions 6.20.26, 7.30.5, 8.40.0 or above.

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/laravel/framework/GHSA-wq8p-mqvg-2p5h.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:44 +0000.