Loading advisory.
Loading advisory.
laravel framework SQL Injection via limit and offset functions
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.
Published 2024-05-15 22:20 UTC · Modified 2024-11-29 05:41 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| laravel/framework | Packagist | >= 6.0.0, < 6.20.26 >= 7.0.0, < 7.30.5 >= 8.0.0, < 8.40.0 versions v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.10.0, v6.10.1, v6.11.0, v6.12.0, v6.13.0, v6.13.1, v6.14.0, v6.15.0, v6.15.1, v6.16.0, v6.17.0, v6.17.1, v6.18.0, v6.18.1 and 226 more | 6.20.26, 7.30.5, 8.40.0 | composer require 'laravel/framework:>=6.20.26'composer require 'laravel/framework:>=7.30.5'composer require 'laravel/framework:>=8.40.0' |
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.
This problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.
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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.