Lucene search

K
githubGitHub Advisory DatabaseGHSA-WQ8P-MQVG-2P5H
HistoryMay 15, 2024 - 10:20 p.m.

laravel framework SQL Injection via limit and offset functions

2024-05-1522:20:42
CWE-89
GitHub Advisory Database
github.com
15
laravel
sql injection
vulnerability
patched
limit and offset
integer input
sql server
mysql
postgres

AI Score

7.9

Confidence

Low

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 configurations

Vulners
Node
laravelframeworkRange8.0.08.40.0
OR
laravelframeworkRange7.0.07.30.5
OR
laravelframeworkRange6.0.06.20.26
VendorProductVersionCPE
laravelframework*cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*

AI Score

7.9

Confidence

Low