GHSA-wq8p-mqvg-2p5h: laravel framework SQL Injection via limit and offset functions
Impact 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. Patches This problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.
Published May 15, 2024
Affected packages
laravel/framework
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.0.0, < 6.20.26
- Fixed in
- 6.20.26
- Check
composer show laravel/framework
laravel/framework
- Ecosystem
- Composer (PHP)
- Affected
- >= 7.0.0, < 7.30.5
- Fixed in
- 7.30.5
- Check
composer show laravel/framework
laravel/framework
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.0.0, < 8.40.0
- Fixed in
- 8.40.0
- Check
composer show laravel/framework
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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.
Patches
This problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.
Workarounds
You may workaround this vulnerability by ensuring that only integers are passed to the limit and offset functions, as well as the skip and take functions.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-128083
Laravel: Task Output Injection - Concurrency Process
low2.3Nov 13, 2026CVE-2026-114508
Laravel relationship inclusion can trigger unauthorized data destruction
medium6.5Oct 23, 2026CVE-2026-114509
Laravel TokenGuard authentication bypass through non-string API credentials
critical9.2Oct 23, 2026CVE-2026-102279
Laravel: XSS in Debug Page Information
low3.1Sep 29, 2026GHSA-5vg9-5847-vvmq
Laravel Framework: CRLF injection in default email rule
high8.9Jun 17, 2026GHSA-crmm-hgp2-wgrp
Laravel Framework: Temporary Signed URL Path Confusion
medium4.2Jun 17, 2026
