Loading advisory.
Loading advisory.
SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database
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 2021-04-29 21:52 UTC · Modified 2024-12-02 05:40 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 | >= 8.0.0, < 8.40.0 < 6.20.26 versions v8.0.0, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1.0, v8.10.0, v8.11.0, v8.11.1, v8.11.2, v8.12.0, v8.12.1, v8.12.2, v8.12.3, v8.13.0, v8.14.0, v8.15.0, v8.16.0, v8.16.1, v8.17.0 and 580 more | 8.40.0, 6.20.26 | composer require 'laravel/framework:>=8.40.0'composer require 'laravel/framework:>=6.20.26' |
| illuminate/database | Packagist | >= 8.0.0, < 8.40.0 < 6.20.26 versions v8.0.0, v8.0.1, v8.0.2, v8.0.3, v8.0.4, v8.1.0, v8.10.0, v8.11.0, v8.11.1, v8.11.2, v8.12.0, v8.12.1, v8.12.2, v8.12.3, v8.13.0, v8.14.0, v8.15.0, v8.16.0, v8.16.1, v8.17.0 and 354 more | 8.40.0, 6.20.26 | composer require 'illuminate/database:>=8.40.0'composer require 'illuminate/database:>=6.20.26' |
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.