GHSA-4mg9-vhxq-vm7j
SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database
En bref
- Publiée
- Mise à jour
Description
### 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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Packagist · laravel/framework | introduced 8.0.0, fixed 8.40.0 |
| Packagist · laravel/framework | introduced 0, fixed 6.20.26 |
| Packagist · illuminate/database | introduced 8.0.0, fixed 8.40.0 |
| Packagist · illuminate/database | introduced 0, fixed 6.20.26 |
Références
- https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j WEB
- https://github.com/laravel/framework PACKAGE
- https://packagist.org/packages/illuminate/database WEB
- https://packagist.org/packages/laravel/framework WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |