VulnWatch by ve1ve2
high

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

Source:
Laravel framework (Packagist laravel/framework vulnerabilities)
Published:
Fetched:
Updated:
Affects:
laravel laravel/framework

https://osv.dev/vulnerability/GHSA-wq8p-mqvg-2p5h ↗

package-watchpkg:laravel/frameworkfix-available

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. ### 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: Packagist:laravel/framework Fixed in: 6.20.26, 7.30.5, 8.40.0 References: https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2021-04-28.yaml https://github.com/laravel/framework

Linked vulnerabilities (2)

SQL Server LIMIT / OFFSET SQL Injection

CWE: CWE-89

laravel framework SQL Injection via limit and offset functions

CWE: CWE-89Aliases: GHSA-4mg9-vhxq-vm7j