First published: Wed May 15 2024(Updated: )
### 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 Software | Affected Version | How to fix |
---|---|---|
composer/laravel/framework | >=8.0.0<8.40.0 | 8.40.0 |
composer/laravel/framework | >=7.0.0<7.30.5 | 7.30.5 |
composer/laravel/framework | >=6.0.0<6.20.26 | 6.20.26 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of GHSA-wq8p-mqvg-2p5h is critical due to the risk of SQL injection.
You can fix GHSA-wq8p-mqvg-2p5h by updating Laravel framework to versions 6.20.26, 7.30.5, or 8.40.0.
GHSA-wq8p-mqvg-2p5h affects Laravel versions 6.x, 7.x, and 8.x prior to the specified patched versions.
The potential impacts of GHSA-wq8p-mqvg-2p5h include unauthorized SQL query execution and potential data leakage.
Only SQL Server is affected by GHSA-wq8p-mqvg-2p5h, while other drivers like MySQL and PostgreSQL are not vulnerable.