GHSA-wq8p-mqvg-2p5h
high
laravel framework SQL Injection via limit and offset functions
- Severity
- high rating by GitHub
- Published
- Last changed
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| laravel/framework (Packagist) | from 6.0.0 before 6.20.26, from 7.0.0 before 7.30.5, from 8.0.0 before 8.40.0 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-wq8p-mqvg-2p5h changed 2024-11-29 | CC-BY-4.0 |